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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

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


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Abhilash_P
Helper II
Helper II

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.