Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello everyone,
I am trying to create a 'year to Date' columns calculating the cummulative value from the colum [Value]. However, as you can see in the picture below, the measure is repeting the same value and not adding the value over time. Note that my date range is in a weekly basis (column week date)... maybe it could be a issue to use this measure. Also I have tryied to use the TotalYTD function and the result is the same as shown in the 'Year To Date' column. Any Idea on how to fix this DAX?
Thansk!
Solved! Go to Solution.
Hi @Anonymous ,
I made a sample and here is my solution,
You can create a calculated column as below to return your expected output.
Column =
CALCULATE (
SUM ( 'Table'[value] ),
FILTER ( 'Table', 'Table'[week date] <= EARLIER ( 'Table'[week date] ) )
)
Final output:
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
I made a sample and here is my solution,
You can create a calculated column as below to return your expected output.
Column =
CALCULATE (
SUM ( 'Table'[value] ),
FILTER ( 'Table', 'Table'[week date] <= EARLIER ( 'Table'[week date] ) )
)
Final output:
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you, it worked perfectly!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 33 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |