Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a table something like this:
ID | Date | Description | Value1 | Value2 | Value3 |
1 | 10/5/2022 | Description1 | 1 | 0 | 2 |
2 | 10/1/2022 | Description2 | 2 | 4 | 5 |
3 | 10/15/2022 | Description3 | 0 | 4 | 0 |
4 | 10/16/2022 | Description4 | 1 | 0 | 0 |
5 | 10/20/2022 | Description5 | 0 | 4 | 4 |
The report has a date slicer so the user can choose records between two dates.
Now I would like to add three buttons, Value1, Value2, Value3 so that, when they are pressed, the visual will show records that have those values greater than 0. The user can click more than one button.
For example, if the user selected the Value1 button he would see records 1, 2, and 4. If he selected both the Value1 and Value3 buttons he would see records 1,2,4, and 5.
It seems like this should be simple but everything I try seems to be one step away from working. If it makes any difference, the ID, Date, and Description columns are from one table and the Value columns are measures calculated from a different table. Any suggestions?
You can achieve this by using slicer visual in PowerBI, with Advanced Filtering.
Check this out for details https://learn.microsoft.com/en-us/training/modules/power-bi-effective-filters/3-slicers
That only deals with slicers based on one field in the table. I want to have slicer buttons that filter on values in the columns. Also, I need the slicer to allow showing records that have positive values in either of the items selected (OR not AND)
User | Count |
---|---|
77 | |
76 | |
41 | |
30 | |
24 |
User | Count |
---|---|
96 | |
91 | |
53 | |
47 | |
46 |