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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
bdoiron
Frequent Visitor

Dynamic report title based on a chiclet slicer.

I have a report visual that is tied to a chiclet slicer. I am trying to create a measure that will change the title based on the users

selection. I would like the titles to reflect "ALL","Multiple" and "Single". I can't seem to figure out how to capture the value of the slicer when nothing is selected which reflects "ALL". This is my measure so far.

 

Product Category Title = IF (COUNT('Cat'[CatDescr])=1, "Category Selected: " & VALUES('Cat'[CatDescr]), IF (COUNT('Cat'[CatDescr])> 1, "Category Selected: Multiple"))

 

I have Multiple and Forced off. The visual reflects "ALL" by default with nothing selected. When one is then selected the Title is Correct "Category Selected" then when a second one is selected "Multiple" shows.

 

How do I get "All" to show when nothing is selected.

 

Thanks for your help 

 

 

 

 

1 REPLY 1
v-jiascu-msft
Employee
Employee

Hi @bdoiron,

 

Please try out the measure below.

Product Category Title =
IF (
    HASONEVALUE ( 'Cat'[CatDescr] ),
    IF (
        COUNT ( 'Cat'[CatDescr] ) = 1,
        "Category Selected: " & VALUES ( 'Cat'[CatDescr] ),
        IF ( COUNT ( 'Cat'[CatDescr] ) > 1, "Category Selected: Multiple" )
    ),
    "ALL"
)

Best Regards,

Dale

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.