Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Aggregating data across rows

 
4 REPLIES 4
mahoneypat
Microsoft Employee
Microsoft Employee

I looked at your pbix.  It is similar but different from the pics you show.  I wasn't able to match what you are showing, so it is hard to troubleshoot it.  Also, there are so many columns.  You definitely should unpivot these data and simplify your model to make your analysis/visualization easier.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


littlemojopuppy
Community Champion
Community Champion

You want to follow the running total DAX pattern.  Your measure should look something like this...

CALCULATE(
	SUM([Value]),
	FILTER(
		ALL(Calendar],
		Calendar[Date] <= MAX(Calendar[Date])
	)
)

@Anonymous so in place of the SUM([Value]) insert the name of the measure

Anonymous
Not applicable

Hi @littlemojopuppy , 

Thanks for the reply. As you can see in my shared link to pbix file, the value shown are calculated using measure. The name of the measure is "sales ltm". So because of this I'm not able to use SUM() function as it does not take measure value.powerbi-2.png

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.