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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors