Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hey guys, hopefully I wrote the DAX formula correctly?
First off, I'm just trying to show the delta between actuals and budget (in the filter scenario). But for some reason, the delta is showing up between both the actual and budget column. Any way to correct that so it shows up after budget?
Solved! Go to Solution.
Hi, @alandizzle
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create a measure as below.
Result =
IF(
ISINSCOPE('Table'[Scenarios]),
SUM('Table'[Costs]),
CALCULATE(
SUM('Table'[Costs]),
FILTER(
ALL('Table'[Scenarios]),
'Table'[Scenarios]="Actual"
)
)-
CALCULATE(
SUM('Table'[Costs]),
FILTER(
ALL('Table'[Scenarios]),
'Table'[Scenarios]="Budget"
)
)
)
Then you may rename the column total of the matrix viusal as 'Delta'.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @alandizzle
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may create a measure as below.
Result =
IF(
ISINSCOPE('Table'[Scenarios]),
SUM('Table'[Costs]),
CALCULATE(
SUM('Table'[Costs]),
FILTER(
ALL('Table'[Scenarios]),
'Table'[Scenarios]="Actual"
)
)-
CALCULATE(
SUM('Table'[Costs]),
FILTER(
ALL('Table'[Scenarios]),
'Table'[Scenarios]="Budget"
)
)
)
Then you may rename the column total of the matrix viusal as 'Delta'.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
129 | |
106 | |
106 | |
86 | |
72 |