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
Rushton92
Frequent Visitor

Using a slicer to select which measure appears in a matrix

Hi

I am using the below matrix (Screenshot 1) to show our actual spend, budget & prior year actual alongside some variances. Each column is calculated using a measure.

When you look at one month this is okay but as you select multiple months it becomes overbearing. I would like to have the ability to pick and choose which measures appears in the matrix. So if you just wanted to see all the actuals (Screenshot 2) then this would be the only column/measure to appear.

 

If you want to see the actuals & budget (screenshot 3) both of these columns/measures would appear etc. This will allow the user to build the report they want to see (screenshot 4).

 

How would i achieve this?

 

Screen shot 1 (All Measures in matrix)Screen shot 1 (All Measures in matrix)Screen shot 2 (Only actuals)Screen shot 2 (Only actuals)Screen shot 3 (Actuals & Budget)Screen shot 3 (Actuals & Budget)

Actuals vs Budget.jpg

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Rushton92 @What you have on the columns in the matrix visual?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

7 REPLIES 7
parry2k
Super User
Super User

@Rushton92 @What you have on the columns in the matrix visual?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Sorry, i not sure what you mean exactly?

 

1.jpg

parry2k
Super User
Super User

@Rushton92 the best approach is creating a calculation group and each measure will be part of a calculation item, once this is done, you can use calculation items as a slicer, and based on your selection you will be able to show respective measures in the visual.

 

There are a lot of blogs/posts on this, search for calculation group.

 

Follow us on LinkedIn

 

Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thanks for the above, a calculation group has done exactly what i wanted. The only problem i now have is i don't have a column subtotal as the button under the format section has disappeared. Have i just not ticked something or are column subtotals not compatible with calculation groups?

 

Matrix with Column Subtotal.jpgMatrix outwith Column Subtotal.jpg

selimovd
Super User
Super User

Hey @Rushton92 ,

 

you have to create a disconnected table that represents the measures you want to show. This table is also then the slicer. Then you have to check what is selected and return the corresponding value.

 

Check the following article on how to do that, that describes exactly what you need:

Change Measures Using a Slicer in Power BI - Goodly

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Hi, Thanks for the above. Your solution did work if I only wanted to see one item. I wanted to be able to see multiple items and calculation groups has done this for me.

Hey @Rushton92 ,

 

you can select multiple values with the slicer. Like this it also will work with my approach.

But I'm happy you could solve it.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

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.