Hoping for any help with hopefully a simple problem - I'm writing MDX into a rule builder within a company application. Here is the expression:
IIF(Time.CurrentMember >= [Time].&[456], "Formula 1" , "Formula 2")
The expression should compare each date in the report to [Time].&[456], which is November 2022 -- if the date is after or greater than or equal to [Time].&[456], it should return Formula 1. If it is before or less than [Time].&[456], it should return Formula 2.
When I enter this expression into the application, I see Formula 2 throughout except for November 2022 where Formula 1 is returned. The expression seems to interpret the "=" sign correctly but doesn't interpret any other operator sign.
Is there a way to update this expression so dates can be compared correctly?
I also added MemberValue to the expression--
IIF(Time.CurrentMember.MemberValue >= [Time].&[456].MemberValue, "Formula 1" , "Formula 2")
But this also did not evaluate correctly - Formula 1 and Formula 2 were returned randomly throughout the report.
Any help would be appreciated! Thank you.