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
hellojb
Frequent Visitor

Dynamic text based on multiple slicers

I have a text card that changes the values based on slicers selected. 

if there are no filters, the text says x 

if a slicer is filtered, text says y.

 

What I am struggling with is how to change the text dynamically if more than one slicers (columns) are filtered.

 

 

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @hellojb ,

 

Based on your description, I have creeated a simple sample:

vjianbolimsft_0-1662013763559.png

vjianbolimsft_1-1662013780147.png

I created two slicers:

vjianbolimsft_2-1662013818003.png

Try the measure:

Measure = IF( SELECTEDVALUE('Table'[Column1])=BLANK()&&SELECTEDVALUE('Table (2)'[Column1])=BLANK(),"x","y")

Final output:

vjianbolimsft_3-1662013892838.png

vjianbolimsft_4-1662013904983.png

Best Regards,

Jianbo Li

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

5 REPLIES 5
v-jianboli-msft
Community Support
Community Support

Hi @hellojb ,

 

Based on your description, I have creeated a simple sample:

vjianbolimsft_0-1662013763559.png

vjianbolimsft_1-1662013780147.png

I created two slicers:

vjianbolimsft_2-1662013818003.png

Try the measure:

Measure = IF( SELECTEDVALUE('Table'[Column1])=BLANK()&&SELECTEDVALUE('Table (2)'[Column1])=BLANK(),"x","y")

Final output:

vjianbolimsft_3-1662013892838.png

vjianbolimsft_4-1662013904983.png

Best Regards,

Jianbo Li

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

 

 

 

 

 

Greg_Deckler
Community Champion
Community Champion

@hellojb See if this helps: The Most Amazing, Mind Blowing Dynamic Slicer Titl... - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Abhilash_P
Kudo Kingpin
Kudo Kingpin

Hello @hellojb ,

You can use below dax function

IF(DISTINCTCOUNT(Table[Column]) > 1,CONCATENATEX(VALUES(Table[Column]),(Table[Column]),"-"),SELECTEDVALUE(Table[Column]))

what about if there are mutiple columns filtered?

U can use 

CONCATENATE DAX function and combine the values from multiple columns
 
Regards

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