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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Selected Value to dynamically change rows in visual

Hello Community,

 

I have a question that I dont even know if its possible to do in Power Bi

 

I have a table with a "group selected field". The requirement is that when you select " Option 1" the matrix shows the count of values by one column and if I select Option 2. The matrix shows the count of same field by another column. Is this even possible to do ?

 

 

Filter Visual:

 

"group selected field" = 1

 

Matrix Visual

 

Row

Option 1 field

 

Value

Count of Value

 

"group selected field" = 2

 

Matrix

 

Row

Option 2 field

 

Value

Count of Value

 

Any help if much appreciated

 

 

 

 

1 ACCEPTED SOLUTION

Hi,  @Anonymous 

According to your picture, I guess that you want to use Matrix chart to achieve using slicers to filter columns .

However, if you use Matrix chart. You may need to place both [option 1] and [option 2] into the row field, which leads to ‘Drill down on row headers’ ,like this:

v-robertq-msft_0-1602737351034.png

 

Therefore, I guess that maybe it’s not possible for Matrix chart to achieve this function. 

If possible, you can create a matrix chart for both [Curve Category] and [Zema Price Type].

 

Here’s some documents about Martix chart and “Drill down” in power bi, you can take a look:

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-matrix-visual

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

 

 

Hi The problem is that I need the visual to display the field types

 

Hi,  @Anonymous 

According to your picture, I guess that you want to use Matrix chart to achieve using slicers to filter columns .

However, if you use Matrix chart. You may need to place both [option 1] and [option 2] into the row field, which leads to ‘Drill down on row headers’ ,like this:

v-robertq-msft_0-1602737351034.png

 

Therefore, I guess that maybe it’s not possible for Matrix chart to achieve this function. 

If possible, you can create a matrix chart for both [Curve Category] and [Zema Price Type].

 

Here’s some documents about Martix chart and “Drill down” in power bi, you can take a look:

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-matrix-visual

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

I suggest you to use the card chart to the count of values instead of the Matrix chart, you can follow my steps:

  1. create an auxiliary table ‘Filter’ as below used in the slicer:

v-robertq-msft_0-1602661502978.png

 

2.You can try this measure:

 

Count of value =

var _selectedvalue=SELECTEDVALUE('Filter'[Group Selected Field])

var _count=

SWITCH(_selectedvalue,

"Option 1",COUNT('Option Field'[Option 1]),

"Option 2",COUNT('Option Field'[Option 2]))

return _count

 

 

3.Create a card chart and a slicer, and you can get what you want, like this:

v-robertq-msft_1-1602661502988.png

 

If this is not what you want, please reply to me.

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

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.