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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
afaro
Helper II
Helper II

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.