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.
Hello,
I have a cummulative line chart using the following calculations:
Solved! Go to Solution.
Create a date calendar and join with your date. Move this calculation there and try the filter
Submitted_running = calculate(sum([SubmittedCR]), FILTER(ALL(Date),Date[Date]<=max(Date[Date])))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.
Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
Hi @Anonymous ,
Please create a measure as below and add it to visual level filter.
Measure 2 = IF(FORMAT(SELECTEDVALUE('Table'[date]),"YYYYMM")>FORMAT(EDATE(TODAY(),-SELECTEDVALUE('Table (2)'[Column1])),"YYYYMM"),1,BLANK())
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you but plese be aware that I have a cummulative sum and I can not just filter previous data. I tried your approach, it does not work
Create a date calendar and join with your date. Move this calculation there and try the filter
Submitted_running = calculate(sum([SubmittedCR]), FILTER(ALL(Date),Date[Date]<=max(Date[Date])))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.
Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
Hi amit chandak,
I figured it out:
I created a Calendar table but I am not able to get this to work.
Lets's say my table is called [DataTable] and the calendar table is called [Calendar]
Is this is the calculation?
Submitted_running = calculate(sum([SubmittedCR]), FILTER(ALL(Calendar),Calendar[Date]<=max(Calendar[Date])))
Yes, I can probably do that but is there any other simple solution without creating a Calendar?
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 | |
97 | |
78 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |