Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
The simplified issue I am facing is that I have data that has muliple "Versions", where the Version is a column consisting i.e., Forecast 23 and Budget. Other columns include Values such as Net Sales. I have tried my way around and do not seem to find a way to make a calculated column or a measure in the Matrix that would show the deviation between different columns in the example:
Instead of the Total (which is not relevant for this matrix) I would want to have columns like Budget vs Forecast 24 and Forecast 23 vs Forecast 24.
Here is my data set:
I am missing something really simple or this is a more complicated task?
Thank you in advance 🙂
Solved! Go to Solution.
Hi @PowerAlchemist ,
Based on your problems, here are my answers.
Firstly I create a table as you mentioned.
Then you can create two new columns and write the DAX codes.
B vs F24 =
CALCULATE (
SUM ( 'Table'[GP1] ),
FILTER ( 'Table', 'Table'[Version] = "Budget" )
)
- CALCULATE (
SUM ( 'Table'[GP1] ),
FILTER ( 'Table', 'Table'[Version] = "Forecast 24" )
)
F23 vs F24 =
CALCULATE (
SUM ( 'Table'[GP1] ),
FILTER ( 'Table', 'Table'[Version] = "Forecast 23" )
)
- CALCULATE (
SUM ( 'Table'[GP1] ),
FILTER ( 'Table', 'Table'[Version] = "Forecast 24" )
)
Finally, go to the Visualizations and select the Matrix. You will get what you want.
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 @PowerAlchemist ,
Based on your problems, here are my answers.
Firstly I create a table as you mentioned.
Then you can create two new columns and write the DAX codes.
B vs F24 =
CALCULATE (
SUM ( 'Table'[GP1] ),
FILTER ( 'Table', 'Table'[Version] = "Budget" )
)
- CALCULATE (
SUM ( 'Table'[GP1] ),
FILTER ( 'Table', 'Table'[Version] = "Forecast 24" )
)
F23 vs F24 =
CALCULATE (
SUM ( 'Table'[GP1] ),
FILTER ( 'Table', 'Table'[Version] = "Forecast 23" )
)
- CALCULATE (
SUM ( 'Table'[GP1] ),
FILTER ( 'Table', 'Table'[Version] = "Forecast 24" )
)
Finally, go to the Visualizations and select the Matrix. You will get what you want.
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.
I would use a calculation group to accomplish this. The article below provides guidance on how to create a calculation group. You would have several calculation items: Budget, Forecast 23, Forecast 24, Budget vs Forecast 23, Forecast 23 vs Forecast 24, etc. You'll need to create explicit measures (DAX) instead of using implicit measures (automatic aggregation). After you create the calculation group, you can use it in a slicer, matrix columns, etc.
Proud to be a Super User!
User | Count |
---|---|
98 | |
90 | |
77 | |
71 | |
64 |
User | Count |
---|---|
114 | |
98 | |
96 | |
68 | |
67 |