Forum Discussion

zoffice's avatar
zoffice
Helper I
5 years ago
Solved

Default filter when no filter selected

Hi all,   I have a slicer of list of regions, and some table and graphs showing the indicators for each selected region. For example, one card showing some country background text, and another vis...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi zoffice 

    I think your data model is as below.

    If you want to calculate number you can use measure like Fowmy 's reply.

    If you want to retrieve string values you can try my measure.

     

    String = 
    IF( 
        ISFILTERED('Table'[Region]),  
        MAX('Table'[Value-string]),
        CALCULATE(
             MAX('Table'[Value-string]),
            'Table'[Region] = "Europe"
        )
    )

    Result is as below.

    By default:

    Select Asia:

     

    Best Regards,

    Rico Zhou

     

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