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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
afaro
Helper III
Helper III

How to use ISFILTERED for clustered column chart?

I am currently using something like this: 

 

SWITCH(TRUE(),

ISFILTERED(X), Y,

ISFILTERED(Z), A) 

 

 

I need to see more than one output if something is filtered since it is a clustered column chart. How do I do this ?

 

 

 

1 ACCEPTED SOLUTION
v-zhouwen-msft
Community Support
Community Support

Hi @afaro ,

Regarding your question, are you trying to display multiple columns in a clustered bar chart by returning multiple values for a single measure?

vzhouwenmsft_0-1715911170904.png

After my testing, this doesn't seem to be possible due to the fact that only one value can be returned for a single measure. Also only a separate column can be generated. The y-axis of the clustered bar chart does not accept data of type 'Text' after stitching multiple values into a string.So my suggestion is to create multiple measures.

Measure = IF(ISFILTERED('Table'[Amount]),SUM('Table'[Amount]))
Measure 2 = IF(ISFILTERED('Table'[ID]),MAX('Table'[ID]))

vzhouwenmsft_1-1715911560022.png

vzhouwenmsft_2-1715911586499.png

 

View solution in original post

1 REPLY 1
v-zhouwen-msft
Community Support
Community Support

Hi @afaro ,

Regarding your question, are you trying to display multiple columns in a clustered bar chart by returning multiple values for a single measure?

vzhouwenmsft_0-1715911170904.png

After my testing, this doesn't seem to be possible due to the fact that only one value can be returned for a single measure. Also only a separate column can be generated. The y-axis of the clustered bar chart does not accept data of type 'Text' after stitching multiple values into a string.So my suggestion is to create multiple measures.

Measure = IF(ISFILTERED('Table'[Amount]),SUM('Table'[Amount]))
Measure 2 = IF(ISFILTERED('Table'[ID]),MAX('Table'[ID]))

vzhouwenmsft_1-1715911560022.png

vzhouwenmsft_2-1715911586499.png

 

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors