Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I use the following measure to calculate a cumulative sum:
Cumul = CALCULATE ( SUM ('Query'[Indicator]), FILTER (ALL ('Query'[Date] ),'Query'[Date] <= MAX ( 'Query'[Date])) )
On this dataset:
Date | Persons | Indicator |
01/02/2017 | Mick | 1 |
01/03/2017 | Mick | 1 |
01/04/2017 | Mick | 1 |
01/02/2017 | David | 1 |
02/02/2017 | David | 1 |
03/02/2017 | David | 1 |
03/02/2017 | Mick | 1 |
It works properly when the date is a date. If I change date to Date Hiearchy the measure stops working.
Is this working as designed? If so, could someone please explain how the context works for me.
Best regards,
Mattias
Solved! Go to Solution.
Do you use Date table in your data model?
Hi,
no I do not use a date table. This is just a simple example I did to try and understand how dates/date hieararchy works.
Hi, I created and added a date dimension and now both work as intended. I still do not understand why the date dimension is required or why the date hierarchy breaks the DAX function but I will includ a date dimension in all the things I do now.
@Matjo wrote:Hi, I created and added a date dimension and now both work as intended. I still do not understand why the date dimension is required or why the date hierarchy breaks the DAX function but I will includ a date dimension in all the things I do now.
I've just stumbled across this thread and seeminly have an identical issue to the one you listed, choosing date hierarchy breaks my cumulative running totals.
Are you able to elaborate on your solution of adding a date dimension. Was that creating a new date table and then adding a relationship against your existing dates?
Thanks,
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
79 | |
59 | |
35 | |
34 |
User | Count |
---|---|
100 | |
62 | |
56 | |
47 | |
41 |