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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors