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

Want to get selection of measures in matrix table in single selection in slicer ?

I have two different measure and wanted get two measure in matrix table based on sigle selection in slicer.

iss.PNG

There is slicer if I will one category will give amount and if I will select anther category will give accounts inside the above matrix table.

 

Thank you !

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Roshan_201295 ,

 

From what I am understaning, you want to display different results on the matrix depending on the slicer selection.

Here's my solution.

Sample data:

From what you describe, there are two measures.

vstephenmsft_1-1656573692024.png

 

1.Create a category table by entering data.

vstephenmsft_2-1656573717272.png

 

2.Create a measure for the slicer to select.

 

Measure = SWITCH(SELECTEDVALUE('Table (2)'[Category]),"Category1",[Measure1],"Category2",[Measure2])

 

 

The results are below.

When 'Category1' is selected,

vstephenmsft_3-1656573837601.png

When 'Category2' is selected,

vstephenmsft_4-1656573844529.png

Reference: SWITCH function (DAX) - DAX | Microsoft Docs

 

 

 

Best Regards,

Stephen Tao

 

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

1 REPLY 1
v-stephen-msft
Community Support
Community Support

Hi @Roshan_201295 ,

 

From what I am understaning, you want to display different results on the matrix depending on the slicer selection.

Here's my solution.

Sample data:

From what you describe, there are two measures.

vstephenmsft_1-1656573692024.png

 

1.Create a category table by entering data.

vstephenmsft_2-1656573717272.png

 

2.Create a measure for the slicer to select.

 

Measure = SWITCH(SELECTEDVALUE('Table (2)'[Category]),"Category1",[Measure1],"Category2",[Measure2])

 

 

The results are below.

When 'Category1' is selected,

vstephenmsft_3-1656573837601.png

When 'Category2' is selected,

vstephenmsft_4-1656573844529.png

Reference: SWITCH function (DAX) - DAX | Microsoft Docs

 

 

 

Best Regards,

Stephen Tao

 

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

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