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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Help with measures in columns and rows

Hello all!!

I hope someone could help me with this doubt

I have a report and i want to show the measures in rows and columns in a matrix.

 

I created an auxiliar table, when have all the lables for the columns and created a measure, with switch to show in the rows the measure combined with the column.

I need to create this for five different measures,  I want to know if is possible to do in another way or I have to create all the measures for all the combination in the table.

I attach an example of the pbi.

https://drive.google.com/file/d/1exTbsOZ0d1pr7Ll7S4WM8uQO5DphW3q6/view?usp=sharing 

table.JPG

 

auxiliar table.JPGmeasure switch.JPG

1 ACCEPTED SOLUTION
lkalawski
Super User
Super User

Hi @Anonymous,

The way you do it is good, and unfortunately I'm afraid there is no other way to do it.

The only improvement that I can propose is to write one measure that will calculate data for months and filter the month with the Calculate and SelectedValue functions.

So e.g. in Amount Actual you will have something like this:

 

Amount Actual: = SWITCH (..., [Selection Measure] in {1,2, ..., 12}, Calculate ([Measure], Filter (All (Table), Month = SelectedValue (Month)))

 

 

_______________
If I helped, please accept the solution and give kudos! 😀

View solution in original post

3 REPLIES 3
lkalawski
Super User
Super User

Hi @Anonymous,

The way you do it is good, and unfortunately I'm afraid there is no other way to do it.

The only improvement that I can propose is to write one measure that will calculate data for months and filter the month with the Calculate and SelectedValue functions.

So e.g. in Amount Actual you will have something like this:

 

Amount Actual: = SWITCH (..., [Selection Measure] in {1,2, ..., 12}, Calculate ([Measure], Filter (All (Table), Month = SelectedValue (Month)))

 

 

_______________
If I helped, please accept the solution and give kudos! 😀

Anonymous
Not applicable

Thanks for your comments!!!

 

 

amitchandak
Super User
Super User

@Anonymous , not very clear to me.

You need to have a measure on the row for this. There is an option for that. Hope you have used that.

https://www.burningsuit.co.uk/blog/2019/04/7-secrets-of-the-matrix-visual/

 

Can you elaborate your challenge

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.