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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
yidaveding
Regular Visitor

Display column based on filter selection

Hi,

I have two table visuals (T1 and T2) and a parent/child hierachy. Table 1 displays PARENT and Total Amount. I want table 2 to display either PARENT_Column or CHILD_Column depending on selection in T1. If there is ANY PARENT selection in T1, T2 will display the its CHILDREN column.

 

The following COLUMN calculation always return FALSE, regardless of selection in T1:

new_column=IF(ISFILTERED(TableName[ColumnName]), PARENT_COLUMN, CHILD_COLUMN)

 

I know the above formular can work as a MEASURE, but it's not working as a COLUMN.

 

Thanks,

David

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@yidaveding - See if this helps: https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-EVERYTHING-measures-axis-legend-titl...

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
AllisonKennedy
Community Champion
Community Champion

Calculated Columns are calculated before the report visuals, and therefore cannot/do not update with slicer and filter selections. You will need to use a measure to get updates based on selection.

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.