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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
user180618
Helper I
Helper I

Show blank card when field in decomposition tree not selected

I've got a decomposition tree and two cards on a page (a regular card and a multi-row one). Currently when one of the fields in the decomposition tree is selected, the regular card shows the 'First' field and the multi-row card is set to Don't summarize so that it shows all of the related fields.

 

What I would like is for the cards to show no values if no fields are selected in the decomposition tree. Is there a quick measure that can do this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @user180618 ,

 

Please try:

Measure 2 = IF(ISFILTERED('Table'[Column2]), CONCATENATEX(ALLSELECTED('Table'),[Card1],","),  "(Not Selected)") 

// CONCATENATEX(FILTER('Table',[Column2] in ALLSELECTED('Table'[Column2])),[Card1],",")

Eyelyn9_0-1657685119542.png

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @user180618 ,

 

Please try:

Measure 2 = IF(ISFILTERED('Table'[Column2]), CONCATENATEX(ALLSELECTED('Table'),[Card1],","),  "(Not Selected)") 

// CONCATENATEX(FILTER('Table',[Column2] in ALLSELECTED('Table'[Column2])),[Card1],",")

Eyelyn9_0-1657685119542.png

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @user180618 ,

 

If possible, could you please share me with your pbix file after removing sensitive data?

 

Refer to:

How to Get Your Question Answered Quickly - Microsoft Power BI Community

How to provide sample data in the Power BI Forum - Microsoft Power BI Community

 

 

Best Regards,
Eyelyn Qin

Thanks @Anonymous, here is the pbix file: https://we.tl/t-lAnbDyIfda

Anonymous
Not applicable

Hi @user180618 ,

 

Please use ISFILTERED():

For Card = IF(ISFILTERED('Item'[Category]),CONCATENATEX(ALLSELECTED('Item'[Category]),[Category],",") ,"(Not selected)")

Eyelyn9_1-1657510600314.pngEyelyn9_2-1657510642324.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks Eyelyn. This has partly worked, but I would like the card to show a different column when filtered (not the same Category one like in your image).

 

The measure works exactly how I want it to when unfiltered:

unfiltered.PNG

But when filtering it shows the Column2 selection:

filtered.PNG

 

Whereas I want it to show the Card1 column when filtered, as below:

card1.PNG

 

How can I slightly change your formula to show that?

 

When I changed it to the below, it just gave me all of the Card1 values:

all.PNG

 

user180618
Helper I
Helper I

To illustrate this with an example.

 

When a field is selected the cards are fine as they are:

selected.PNG

But how can I make the cards show blank values when nothing is selected in the decomposition tree:

unselected.PNG

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors