Forum Discussion
Column selection based on Filter
- Anonymous6 years ago
Hi Farwest ,
Please try to complete the following steps to achieve your requirement:
1. Create one dimension table for name field(Group 1,Group 2,Group 3 etc. )
Create table Groups
2. Create the relationship between two tables using field "Group" in Groups table and "Name" field in Table
Create relationship between dimension and fact table
3. Create a measure and drag the related fields onto the visual as below screen shot
Measure = IF(ISFILTERED('Groups'[Group]),MAX('Table'[Name 2]),MAX('Table'[Name 1]))Create measure and table visual
Best Regards
Rena
I think measure selection you can do like -https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/500115
For axis/column , you might have to use bookmarks as of now
https://radacad.com/bookmarks-and-buttons-making-power-bi-charts-even-more-interactive
Thanks amitchandak
This actually works better, but I still have a problem.
This works when I define the selected Filter Value "Selected", but I am trying to:
if only one filter is selected then get 'Table' [Name 1] otherwise (all selected) get 'Table' [Name 2] (this is a single filter selection anyway)