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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.