Forum Discussion

yidaveding's avatar
yidaveding
Regular Visitor
6 years ago

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