Forum Discussion
Sam09
7 years agoFrequent Visitor
dynamically changing the column display based on slicer selection..
Is it possible to dynamically change the columns which i'm showing in the table visualization based on the option selected in the slicer. I have the below table: MobID Pname level Model
...
AkhilAshok
7 years agoSolution Sage
You can create 2 generic measures like this and use:
Count Previous Year = SWITCH ( SELECTEDVALUE ( ProdData[Model] ), "2017", [count2016], [count2017] ) Count Selected Year = SWITCH ( SELECTEDVALUE ( ProdData[Model] ), "2017", [count2017], [count2018] )
Sam09
7 years agoFrequent Visitor
AkhilAshok - The results are not displayed correctly when selected 2017. Any inputs?
- AkhilAshok7 years agoSolution Sage
Have u tried the solution from v-yulgu-msft? That should work fine. My approach may not work, since the filter on year will filter the Pname dimensions. So you have to create a diconnected table with Year values and use that as a slicer.
- Sam097 years agoFrequent Visitor
AkhilAshok - Yes, solution from v-yulgu-msft works but the issue is i cannot able to create a new table in my file as i'm fetching the data using directQuery instead of import..
- AkhilAshok7 years agoSolution Sage
Is PBI Report DirectQuery from SQL Server or SSAS? If from SQL Server, you can now enable the preview feature Composite Models which helps you to combine, data import with DirectQuery.