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
Selva_Power_BI
Regular Visitor

Switch between two Text columns based on Slicer

Hi,
I have a tricky requirement for my dashboard to show values from two different text columns based on the slicer selection. I found so many close results for my search but everything I found is for Integer type columns like SUM(Column A) to return results by measure but my requirements is for Text column (Column for Comments)

 

So, if there is no selection in the Slicer, then I want to show the Text values from Column A and if there is any value selected in the slicer then I want to show the values from Column B. 

My basic Measure to get the result is SlicerCheck_Comments = IF (ISFILTERED('Table 1'[HUB]) = FALSE() , MAX('Table 1'[Comments A]), MAX(Table 1'[Comments B]))

This is not working becasue it returns only one row because of Max function, without Max function I am unable to add a column, please help me achieve this. 

If there is no selection like below then I want to see values from Comments A column

Selva_Power_BI_1-1610551653240.png

If there is any selection, I want to see values from Comments B column

Selva_Power_BI_2-1610551757640.png

Please help

 

 

 

1 REPLY 1

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.