Forum Discussion
Anonymous
5 years agoNot 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 t...
- 5 years ago
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])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
Community Champion
5 years agoAnonymous 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.