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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
kkashiv
Frequent Visitor

Calculate sum of rows of a measure

I have a measure named 'Measure 2' uses another measure to give a table like this.

kkashiv_0-1685591735327.png

DAX of 'Measure 2' 

kkashiv_0-1685592632761.png

 


I would like to create a measure that calculates the sum of each row for each place in Buildings. However the names and number of columns is not known as that is a filter applied from another visualization.

kkashiv_1-1685591985379.png


The reason I'm trying to calculate the total is because i want to represent a sorted cluster chart, however just utilizing the existing measure as the sort axis gives vague visualizations.

kkashiv_2-1685592194022.png

 

kkashiv_3-1685592274072.png


I will use the new measure as a tooltip which will allow me to sort the axis according to the total.

How can I achieve this?








4 REPLIES 4
kkashiv
Frequent Visitor

How should I share the PBI file? I am using a SSAS connection to load the data model which requires secondary authentication.

Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I have created dummy data and PBIX that represents the data model.
kkashiv.pbix

Hi,

Write this measure and drag it to the tooltip.  Sort by this new measure

Total of all commodities = SUMX(VALUES(Commodity[Commodity]),[Measure_2])

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors
Top Kudoed Authors