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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
timhopson
Helper I
Helper I

Create a table that is a subset or another table, using a visual slicer

Hi, 
I have this table:
 
OrderSummary =
Company, 
NumberOfOrders,
ValueOfOrders,
TypeOfCompany
 
 
I want the user to select the company from a slicer, and display data in a matrix, similar to this...
 
 
NumberOfOrders 100
ValueOfOrders £123,456
TypeOfCompany   Insurance
 
 
I hoped I could create a calculated table , such as:
 
FilteredCompany = 
UNION (
ROW ("Field", "Number of Orders", "Value", sum(NumberOfOrders) ),
ROW ("Field", "Value of Orders",  "Value", sum(ValueOfOrders) ),
ROW ("Field", "Type Of Company", "Value", selectedValue(TypeOfCompany, "multiple") )
       )
 
and then display Field and Value in a matrix.
 
I have added a slicer to the page, however the FilteredCompany doesn't get filtered. 
 
Is there a way I can get this data to just show the data selected by the user?
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @timhopson ,

 

Please try create three measures and put them in matrix's values:

vcgaomsft_1-1688365238970.png

then turn on the swith values to rows:

vcgaomsft_2-1688365274955.png

Please check the simple pbix file. It also contains another method.

vcgaomsft_3-1688365393971.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @timhopson ,

 

Please try create three measures and put them in matrix's values:

vcgaomsft_1-1688365238970.png

then turn on the swith values to rows:

vcgaomsft_2-1688365274955.png

Please check the simple pbix file. It also contains another method.

vcgaomsft_3-1688365393971.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Gao, 

Thank you so much, that's really helped me out.

regards, Tim.

ppm1
Solution Sage
Solution Sage

Calculated tables and columns only update at refresh, so don't respond to slicer changes. Why isn't just using the columns from your original table in the matrix with slicers working? 

 

Pat

Microsoft Employee

Hi Pat, 

I want the matrix data to appear as multiple rows, with a single column of figures.

 

If I drag the columns from my original table, they will become mulitple columns with a single row (if filtered)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.