I want to write an mdx query with a calculated Measure. Here is my fact table:

How to implement a mesaure with the rule below :
If CurrentAtt != PreviousAtt then PreviousValue
else CurrentValue
Thank you so much!
any suggestion please ?
I want to write an mdx query with a calculated Measure. Here is my fact table:

How to implement a mesaure with the rule below :
If CurrentAtt != PreviousAtt then PreviousValue
else CurrentValue
Thank you so much!
any suggestion please ?
Copyright © 2021 Jogjafile Inc.
There are functions
PrevMemberandMemberValueinMDXthat you could use.To implement the logic you could use
IIFSo something like the following: