Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago

Hiding columns if blank

Hello,

 

I am currently having issues with the following case:

 

I have a table that groups different types of information, with 40 columns, but each case has values in a different columns. Example:

Type-Col 1_Col 2_Col 3_Col 4

A --- -X-----X----" "----" " -

A --- -X-----X----" "----" "--

B --- -X-----X----" "---- X --

C --- -X ----" "---" "----" " -

D --- " " ----X----" "----X- -

D --- " " ----X----" "----X- -

E --- " " --- "  " -- X ----" " -

 

Meaning X: has data, " " does not have data (a blank). Is it possible in Power BI to construct one table with all colums and, when I filter by Type (A, B, C, D, E), it only shows the columns does contain data?

 

I have tried by leaving the column with no name, and it would do the tick, but then I don't know which value X it is showing.

 

Regards,

Antonio

7 Replies