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.
Hi All,
To display CY I have written below DAX, it is working fibe when I'm displaying it alone.
But when I'm bring the year column alsong with it, the data is getting group by Year column. Please see below.
I need to display only CY along with 2013, which is not happening in above visualization.
I believe in my DAX calculation I'm using [Year] and thts' why I'm not able to acheive this.
Can anyone fine tune my DAX to get the accurate results along with Year,Quarter,Month.
Thanks,
Anand
Solved! Go to Solution.
@AnandNamburi , Try like
CY Sales =
var _max = MAXX(allselected(Orders) , Orders[Order Date].[Year])
return
CALCULATE(SUM(Orders[Sales]),FILTER(ALLSELECTED(Orders),Orders[Order Date].[Year]=_max))
But prefer to use time intelligence
Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA
@AnandNamburi , Try like
CY Sales =
var _max = MAXX(allselected(Orders) , Orders[Order Date].[Year])
return
CALCULATE(SUM(Orders[Sales]),FILTER(ALLSELECTED(Orders),Orders[Order Date].[Year]=_max))
But prefer to use time intelligence
Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA
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 |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |