Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Using the following DAX I am trying to calculate the change in average monthly total sales over time at region level:
What I don't understand is why the following do not give me the same results:
I presume it is to do with the way the filter context is handled but would appreciate help in understanding why the first measure gives different results to the others.
Thank you.
Variables in DAX aren't really variables, they're constants which are only evaluated once, at the point where they are declared.
In your second 2 examples you are creating a static table and then applying a filter to 'Date'[Date], but the Date table cannot filter the variable because it isn't part of the model.
If you wanted to use the technique in your third example you would need to include in the summary table a numeric representation of month year and you would then be able to use that as a filter.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
78 | |
49 | |
38 | |
37 |
User | Count |
---|---|
194 | |
79 | |
70 | |
51 | |
42 |