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
PBI-Curious
Resolver I
Resolver I

How to combine two measure into one in a Matrix View

Hello PBI Community Good Day!

 

Per the screen shots from my sample .pbix below, I have created a view with Sales and Revenue in a matrix visual with ease. However, when I use Analyze in Excel to create the same view, I can’t use the SnR Amount. I have to use my ( Total Sales and Total Revenue) Key Measures I have created.

 

*****Screen Shot 1******

PBICurious_0-1710863424435.png

What I’m trying to accomplish:

 

To create the same view per my .pbix above in Analyze in Excel.

 

What I have accomplished so far.

 

I have been able to create a similar view in Analyze in Excel, but my Sales and Revenue are staggered. Screen Shot 2

I need help with creating one measure that combines both measures to give me the view I have in Screen Shot 1 ( Sales and Revenue stacked and align under each other).

 

****Screen Shot 2******

PBICurious_1-1710863588836.png

 

Here are the measues for Sales and Revenue:

 

PBICurious_5-1710863898662.png

PBICurious_6-1710863910765.png

 

Much appreciate your time per this matter!

 

Thank you

 

 

4 REPLIES 4
Greg_Deckler
Super User
Super User

@PBI-Curious Take Values out of your Columns field well?



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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hello Greg_Deckler

Not sure what you mean per you comment below.

Take Values out of your Columns field well?

 

Also, How can I upload a sample .pbix?

 

Here are my measures. Can you provide an example?

Thank you

 

Total Revenue = CALCULATE(SUM('SnR 2020 - 2022'[SnR Amount]),'SnR 2020 - 2022'[transaction_type] = "Revenue")
 
Total Sales = CALCULATE(SUM('SnR 2020 - 2022'[SnR Amount]),'SnR 2020 - 2022'[transaction_type] = "Sales" || 'SnR 2020 - 2022'[transaction_type] = "Timing" )
 
 

@PBI-Curious In your Excel pivot table you have 2 things in the Columns field well, Values and Year. I am saying take Values out of that field well.



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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hello Greg_Deckler

Good Day!

When I take out  value from the column field well, my Total Sales and Total Revenue numbers disappear.

 

see screen shots below

 

Note: I'm creating my pivot in Analyze in Excel

 

Before

PBICurious_1-1711383500098.png

 

 

After:

PBICurious_0-1711383293778.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.