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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Multiple columns in slicer

Hi there!

 

I am working on a frontpage on which I want to show things like: top 10 highest, top 10 lowest, allocation ect ect. How can I show this of several columns on one page (without showing them together)? is it possible to have a slicer that makes a selection between columns possible? These columns are not related to each other so its not a hierarchy. 

 

in other words a slicer or anything that makes a selection of a column possible instead of the values of each column:

B

C

ect

 

 

Please let me know if you need additional info,

 

many many thanks!

 

Loek

 

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Based on your description, measure can achieve similar requirment, but column cannot.

Create multiple measures, create a disconnected table with the name of measure, and change measure dynamically through slicer.

Sum_sales = SUM('Table'[Sales])

Rate = 
var total_month_sales = CALCULATE(SUM('Table'[Sales]),ALLEXCEPT('Table','Table'[Month name],'Table'[Date].[Year]))
var per_product = [Sum_sales]
return DIVIDE(per_product,total_month_sales)

Measure = SWITCH(SELECTEDVALUE('Table (2)'[slicer]),
            "Rate",[Rate],
            "Sum_sales",[Sum_sales])

Here is the sample .pbix

 

Best Regards,
Liang
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
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Based on your description, measure can achieve similar requirment, but column cannot.

Create multiple measures, create a disconnected table with the name of measure, and change measure dynamically through slicer.

Sum_sales = SUM('Table'[Sales])

Rate = 
var total_month_sales = CALCULATE(SUM('Table'[Sales]),ALLEXCEPT('Table','Table'[Month name],'Table'[Date].[Year]))
var per_product = [Sum_sales]
return DIVIDE(per_product,total_month_sales)

Measure = SWITCH(SELECTEDVALUE('Table (2)'[slicer]),
            "Rate",[Rate],
            "Sum_sales",[Sum_sales])

Here is the sample .pbix

 

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

AllisonKennedy
Super User
Super User

@Anonymous  Mostly DAX works on 1 column, so you might be able to unpivot the columns and get a similar result to what you're looking for. 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.