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
| c1 | c2 | c3 |
| may 2020 | 32 | 32 |
| jun 2020 | 22 | 54 |
| jul 2020 | 54 | |
| aug 2020 | 54 | |
| sept 2020 | 34 | 88 |
| oct 2020 | 2 | 90 |
| nov 2020 | ||
| dec 2020 |
I have c2 column and need to display c3 running total but blank values before last value should display previous values
my table is connected to date table
my measure:
but displaying cumulative till last
Solved! Go to Solution.
If tried same scenario and try to filter the data by using slicer which I created from date field it is not giving correct count.
@vijaykumarj19 assume c1 from date table then try this code
=var _currentYM=max(datetable[year month]) return calculate(sum(c2),datetable[year month]<=_currentYM)
Its not showing cumulative count
My table
calculating cumulative and ploted in line graph
Below line should stop at a6
Dax :
can anyone help me with the solution
Need to show a3 and a4 with a2 value
If we have dates as axis
If i have month year from date table as axis then
and i do have a relation between tables
Then how would this dax modified
var c = MAX('Table'[c1])
VAR d = MAXX(FILTER(ALL('Table'),'Table'[c2]>0),'Table'[c1])
Return
IF(c<=d,
CALCULATE(SUM('Table'[c2]),FILTER(ALL('Table'),'Table'[c1]<=c)))
AccTotalc2 = VAR vCurrentDate=MAX(DateTable[Date]) VAR vMaxDate=CALCULATE(MAX('Fact'[c1]),FILTER(ALL('Fact'),'Fact'[c2]>0)) RETURN IF(vCurrentDate<=vMaxDate,CALCULATE(SUM('Fact'[c2]),DateTable[Date]<=vCurrentDate))AccTotalc4 = VAR vCurrentDate=MAX(DateTable[Date]) VAR vMaxDate=CALCULATE(MAX('Fact'[c1]),FILTER(ALL('Fact'),'Fact'[c4]>0)) RETURN IF(vCurrentDate<=vMaxDate,CALCULATE(SUM('Fact'[c4]),DateTable[Date]<=vCurrentDate))
But it stoped at dec need to be extended till Jan , Because we have value for Jan also
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 30 | |
| 19 | |
| 11 | |
| 10 |