The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
102 | |
82 | |
62 | |
56 |
User | Count |
---|---|
254 | |
119 | |
115 | |
100 | |
76 |