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

Max Value of Slicer while multiple Values are selected

Hello there,

 

i have a Slicer of Monthname where the User can choose more than one Month. i am searching for a Dax- Formula where the Measure returns the Max of the choosen Months.

for example: if MonthName Slicer got Jan, Feb and Mar as selected Values... Mar should be the Result
i tried already a Measure with MonthNumbers but with MonthName the Result is not the Same...

https://www.dropbox.com/s/9nqmwxxw7ezckc1/sample.pbix?dl=0 

1 ACCEPTED SOLUTION
Barthel
Solution Sage
Solution Sage

Hey @corp_scorp,

You could try this measure:

Max Month Number of selected Values = 
VAR _max_month_number =
    MAX ( 'Date'[MonthNumber] )
RETURN
    CALCULATE ( 
        SELECTEDVALUE ( 'Date'[MonthName] ),
        'Date'[MonthNumber] = _max_month_number
    )

View solution in original post

2 REPLIES 2
corp_scorp
Frequent Visitor

@Barthelworks like a charm:)

Barthel
Solution Sage
Solution Sage

Hey @corp_scorp,

You could try this measure:

Max Month Number of selected Values = 
VAR _max_month_number =
    MAX ( 'Date'[MonthNumber] )
RETURN
    CALCULATE ( 
        SELECTEDVALUE ( 'Date'[MonthName] ),
        'Date'[MonthNumber] = _max_month_number
    )

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.