Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have the three tables budget, revenue and date that I use for a matrix table in my report. The date column of the date table is connected to the date colums of the budget and revenue table. I use the date format DD.MM.YYYY.
As you can see below I want to see the budget sum of the whole year for each year for each row. Thus, for 2022 I want that each row is 17500 and for 2021 and I want that each row is 13100. However, when I apply my DAX formula I get 30600 instead for each row (which is the sum of 17500 and 13100).
What DAX formula should I use to get the desired result?
This is the DAX formula I currently use:
Solved! Go to Solution.
Hi @TimmK ,
I think you should be using the date hierarchy in the matrix, then try the following formula:
Measure =
CALCULATE(
SUM(
Budget[Budget]),
ALLEXCEPT('Date','Date'[Date].[Year])
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @TimmK
Almost there
Budget I Want =
CALCULATE(
SUM(
Budget[Budget]),
ALLEXCEPT('Date','Date'[Year])
)
Thanks, but this formula still results in "Budget I get". What could be possibly the reason? In the data model I connected the date fields correctly. Also, the column "Budget" is displayed correctly, it shows the correct values for each month and year.
Hi @TimmK ,
I think you should be using the date hierarchy in the matrix, then try the following formula:
Measure =
CALCULATE(
SUM(
Budget[Budget]),
ALLEXCEPT('Date','Date'[Date].[Year])
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 21 | |
| 12 | |
| 9 | |
| 5 | |
| 5 |