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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
ayaasfour
Frequent Visitor

Add Measure at end of matrix not after each column

Hey,

I have matrix and I create measure to calculate the sumn , I know that sum is ready made but I need other functions I just try it.

I need matrix to be like that

 

Date col1 col2 My measure
2020-08-01 20 30 50
2020-08-02 10 20

 30

 

But what happened to me that the measure repeted after each column by this way

Date col1 My measure col2My measureTotal measure  
2020-08-01 20 20 303050  
2020-08-02 10 10 2020   

 

so how to solve this problem please?

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@ayaasfour One way is to turn off word wrap and shrink the unwanted columns. Otherwise, you can use a custom matrix hierarchy solution like the one here: https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
mahoneypat
Microsoft Employee
Microsoft Employee

I suspect you need to unpivot your data.  If Col1 and Col2 have values you plan to sum, you likely need to unpivot those two columns in the query editor.  You can then use the new Attribute column you'll get (with values of "Col1", "Col2") on columns in a matrix visual to get your desired result, including the total.

Unpivot columns (Power Query) - Excel (microsoft.com)

 

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


Greg_Deckler
Community Champion
Community Champion

@ayaasfour One way is to turn off word wrap and shrink the unwanted columns. Otherwise, you can use a custom matrix hierarchy solution like the one here: https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

whats is the benefit of turning of word wrap ? and How to shrink unwanted columns?

@ayaasfour Word wrap prevents rows from getting bigger vertically when you shrink them. To shrink columns, hover your mouse over the right "line" in the column heading. Your cursor should change and then you click and drag the column to the left. If you don't turn off word wrap, as your column shrinks the letters/words will wrap and make the rows taller.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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.