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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
CoronaAustralis
Frequent Visitor

Dynamic Tiles based on selection slicer

Hi all experts, 

 

I would need to create a dynamic title. 

The slicer selection has A, B, C, D. 

If all selected, the title is all.

If A,B,D, selected, the title is Group 1

Otherwise, the title based on selection. If A, is selected, the title is A. If B is selected, the title is B. If A & C, selected, the title is A&C and etc... 

 

How to write this condition in the dax format? 

2 REPLIES 2
VahidDM
Super User
Super User

Hi @CoronaAustralis 

 

try this:

Measure = 
VAR _A =
    ADDCOLUMNS ( 'Table', "UNI", 10 ^ ( UNICODE ( MAX ( 'Table'[Item] ) ) - 64 ) )
VAR _B =
    SUMX ( _A, [UNI] )
RETURN
    IF ( _B = 30000, "Group 1", IF ( _B = 40000, "All", MAX ( 'Table'[Item] ) ) )

 

 

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

 

Appreciate your Kudos!!

 

I am new to BI and i do not understand how the formula works on the question i post. 

 

 

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.