Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Clout
Helper III
Helper III

Hide table columns by sclicer

Hello guys,

 

I have multiple columns in my visualized table. But some columns are in a definet time completely blank, so I want to choose only the columns where I have data by a slicer.

 

So If I choose "GesN and GesP" the table should get smaller and show only the columns which I choosed. This should be possible for every column. So If I choose "CSB, BSB5 and GesN", the table show me only these.

Unbenannt.PNG

 

This would be the optimal outcome:

 

Unbenannt2.PNG

 

Would this be possible by a DAX Function?

 

Thanks in advance!

 

EDIT: My columns in the table are measures, not from the data model.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Clout , for this one, you have unpivoted the column or check if calculation groups can help

 

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/

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Clout , for this one, you have unpivoted the column or check if calculation groups can help

 

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/

Okay thank your for your answer @amitchandak ,

 

so this is only possible if I have these columns in my data model and its not possible with measures?

@Clout , Possible with column/ which can become measure with aggregation. 

 

calculation group is a good option if it can work for your measure 

https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

Allright thank you, 

I did now my few calculations in Power Query and unpivoted them to slice them.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.