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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
I have below columns in Power BI table. I need to show the running total for every day in the table how to show everyday total.
Please help me on this.
Thanks,
Raj
Solved! Go to Solution.
@Anonymous
This dax is the running total formula for a calculate column. Dax for measure:
Measure = Sumx(filter(allselected(Table), [lastenrollon] = max( [lastenrollon]) && [Index] <=max([Index])), [valuecolumn])
Or
Measure = Calculate(sum([valuecolumn]), filter(allselected(allselected(Table), [lastenrollon] = max( [lastenrollon]) && [Index] <=max([Index])),
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Anonymous
This dax is the running total formula for a calculate column. Dax for measure:
Measure = Sumx(filter(allselected(Table), [lastenrollon] = max( [lastenrollon]) && [Index] <=max([Index])), [valuecolumn])
Or
Measure = Calculate(sum([valuecolumn]), filter(allselected(allselected(Table), [lastenrollon] = max( [lastenrollon]) && [Index] <=max([Index])),
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Anonymous , As you do not have timestamp in date you need index for running total column
https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi
countx(filter(Table, [lastenrollon] = earlier( [lastenrollon]) && [Index] <=earlier([Index])), [lastenrollon])
daily total
countx(filter(Table, [lastenrollon] = earlier( [lastenrollon]) && [Index] <=earlier([Index])), [lastenrollon])
use sumx for value columns
Hi,
I created Index Column and named as SNO and tried doing your query mentioned above. the above is not executing.
Please help on this.
Thanks,
Rajesh