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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
noah44
Helper I
Helper I

Dynamic hideable columns in a table visual

Hi,

 

I found this Post:

https://community.powerbi.com/t5/Community-Blog/Dynamic-Hideable-Columns-in-Power-BI-Table-Visual/ba...

 

it helped me out a lot with a report. But I have problem using this for multiple tables.

There is no data in the columns when I try to do the same thing for a second table with other values.

 

Is there a DAX-Expert here that can help me figure out what the problem is?

 

Kind regards

Noah

7 REPLIES 7
AllisonKennedy
Super User
Super User

@noah44 Can you please paste some sample data here and explain what you mean by second table - is that a second table visual or data model table or both?


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

@AllisonKennedy  I am working with customer Data, so I can't post it sadly.

 

I mean a second Table Visual with different values but from the same data model

 

We don't need the actual data, but need to know more about the data model - how many tables are you working with within the data model?


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

The data used in the table visuals comes from one Table. Within the report I have three imported tables and the ones described in the tutorial. But I only use data from one of the imported ones.

@noah44  And are you creating additional tables like the ones in the tutorial or trying to use the same? If you want to have two unrelated filters for the columns, you'll need to do that with two tables, and then update the DAX to look at the value of both tables, does that help or make any sense?


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

@AllisonKennedy 

sorry for the late reply. Sadly I can't fully understand, what do you mean "update the DAX to look at the value of both tables" 

I've been working with Power Bi for a while now but I am still having my problems with DAX

@noah44  If you can share your report (use OneDrive link) that would be best, otherwise, what are your current DAX formulas and also your Data Model screenshot with relationships? 

 

You haven't provided much detail about your data, so hard to give you more specific help without that. 

 

But from your description, I suspect that the relationships between the multiple tables is making this not work, you need to use an OR filter perhaps in your DAX: you can use || for or. Otherwise if you have two filters from two tables, Power BI will apply BOTH filters at the same time and I suspect that returns no results, because it needs to meet one OR the other condition, but not both? 

 

Not sure if I understand your requirements properly, so any detail you can provide on that would be fantastic!


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.