I've searched and found alot of results describing how to compare current and previous time periods in SSAS Tabular, but what I need is a comparison of another nature, namely versions (i.e not related to time )
Say I have two related entities in my Tabular model: Version and Details (1:n)
Each entry in Details relates to one Version, contains a Detail_ID, some descriptive attributes and measures. I want to provide users the following, e.g. in an Excel Pivot.
Filters:
Current Version --> user selects any value from Version
Previous Version --> user selects any value from Version
Rows:
Any descriptive attributes from Details
Columns:
Current (measure) Amount
Previous (measure) Amount
Difference Amount
For the measures, there should be a Current (measure) Amount and a Previous (measure) Amount, and a measure which calculates the difference between the Current and Previous amount for a particular Detail_ID. If the Detail_ID exists in Current Version but not in Previous Version, the difference should be equal to the Amount in Current Version (N - 0 = N)
Can this be done using DAX? Or do I need to remodel by providing additional entities to take care of the current and previous datasets?