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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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?


@ 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!:
The Definitive Guide to Power Query (M)

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.


@ 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!:
The Definitive Guide to Power Query (M)

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors