Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have a matrix that shows expected exposure for years in the future. On the rows is reportdate and on the columns is the year expectation and values is exposure. Those are in the same table. I want to calculate exposure for the previous day to see how much it have changed from one date to next. How can I do that? I will incude thos values in the matrix. Can I do that with measure or do I have to make a new column?
Solved! Go to Solution.
Hi @LFM ,
Based on your problems, I create a table as you mentioned.
Then I put the table into the Matrix.
Next I create a measure and here is the DAX code.
Measure =
SUM ( 'Table'[Exposure] )
- CALCULATE ( SUM ( 'Table'[Exposure] ), PREVIOUSDAY ( 'Table'[Reportdate] ) )
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @LFM ,
Based on your problems, I create a table as you mentioned.
Then I put the table into the Matrix.
Next I create a measure and here is the DAX code.
Measure =
SUM ( 'Table'[Exposure] )
- CALCULATE ( SUM ( 'Table'[Exposure] ), PREVIOUSDAY ( 'Table'[Reportdate] ) )
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
51 | |
27 | |
19 | |
18 | |
14 |
User | Count |
---|---|
91 | |
86 | |
39 | |
23 | |
22 |