Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have a table in which I calculated the cumulative quantity in DAX:
Cumul quantity = calculate (SUM('table_fact'[Quantityu]),
DATESYTD('table_calendar'[Date]))
I have a problem that I can't solve, when I have an empty value, I want to replace it with the previous value.
In my example, I have no data after January 2023 so all years after February 2023 will take the previous value, i.e. 5. How can I solve this problem?
THANKS
Even if its direct query, the formula should work. In above case the fact table is direct query and date table is static.
Hope this will work.....
Hi @Rupak_bi ,
I'm on DirectQuery Mode and your formula doesn't work.
1. I create a measure which calculate the cumul like this :
Cumul quantity = calculate (SUM('table_fact'[Quantityu]),
DATESYTD('table_calendar'[Date]))When i want to use this measure in calculate like your example, it's doesn't work
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 12 | |
| 10 |