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, I am trying to achieve something like the graph below. I already had the DAX function to get the cumulative counts monthly every year. But after many hours, I am still struggling to maintain the cumulative counts once I put it all out in one line graph similar to below. Also, I have data from year 2010, yet I only wanted to show cumulative data from year 2017 (or 3 years ago). How can I dynamically tell the graph to only display 3 years worth of data? I have here a sample PBIX file. If anyone can help enlighten on this, I would really appreciate it. Thank you very much.
Solved! Go to Solution.
Hi @iamriz
Please let me know if you would like to get below one:
Measure = VAR currentDate = MAX('Table'[Date])
RETURN
CALCULATE(
COUNTROWS('Table'),FILTER(ALL('Table'),[Date]<=currentDate),VALUES('Table 2'[Year]))
Pbix attached.
Hi, @Mariusz, @v-diye-msft, thanks for being awesome, your answers helped me, thank you very much!!
Hi @iamriz
Please let me know if you would like to get below one:
Measure = VAR currentDate = MAX('Table'[Date])
RETURN
CALCULATE(
COUNTROWS('Table'),FILTER(ALL('Table'),[Date]<=currentDate),VALUES('Table 2'[Year]))
Pbix attached.
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |