Forum Discussion
Multiple columns in slicer
- 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.
Anonymous , Not very clear
You can not show hide the columns. But you use measure slicer or bookmarks to create this kind of feel
Bookmarks
https://www.youtube.com/watch?v=z9jdkyyE3WU
measure slicer
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slicer-parameter-table-pattern
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/500115
Dynamically change chart axis in Power BI
https://www.youtube.com/watch?v=6jeSIRpjv0M
https://datamonkeysite.com/2020/10/22/change-dimension-dynamically-using-parameter-in-powerbi/
measure slicer
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slicer-parameter-table-pattern
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/500115