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! Request now

Reply
Manick1012
New Member

Dynamically choose Column A if all values of a Slicer are selected and Column B if there's one value

Hi all,

 

I have a Slicer selection based on a Chicklet. If no values are selected in the slicer (all selections), then i'll need to see Column A in my table (to be visualised in a graph). However, if there is even one value selected in the slicer selection, then I'll want to see Column B in my table.

 

How can I accomplish this ?

 


Regards,

Manick

3 REPLIES 3
Anonymous
Not applicable

@Manick1012  - 

You can create a new measure like the following:

(Note: the MAX function could be substituted with some other aggregate)

 

Value = 
IF(
    ISFILTERED(YourTable[YourFilterValue]),
    MAX(YourTable[ColumnA]),
    MAX(YourTable[ColumnB])
)

alternatively, you could have a single measure associated with each column, like this:

Value A= 
IF(
    ISFILTERED(YourTable[YourFilterValue]),
    MAX(YourTable[ColumnA]),
    BLANK()
)
Value B = 
IF(
    ISFILTERED(YourTable[YourFilterValue]),
    BLANK(),
    MAX(YourTable[ColumnB])
)
I hope this helps. If it does, please Mark as a solution.
I also appreciate Kudos.
Nathan Peterson

 

Thanks for the suggestion - but that doesn't work.

Anonymous
Not applicable

@Manick1012  - Could you share a screenshot of the table, measure text, result, and expected result. It may be more beneficial to share the pbix, as well.

Thanks,

Nathan

 

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