Forum Discussion

zakkyang's avatar
zakkyang
Frequent Visitor
4 years ago
Solved

Dynamicly Select Values Based on Multiple Measures

I know it might be difficult to understand the title here...   To illustrate, I have multiple products that will be  re-launched in different countries and brands under one big group. For example,...
  • v-kkf-msft's avatar
    4 years ago

    Hi zakkyang ,

     

    Please try the following formula and show items when the measure is not blank.

     

    Measure = 
    VAR tab =
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Product Name] = MAX ( 'Table'[Product Name] )
        )
    VAR Precount =
        MINX ( tab, 'Table'[Days Since ReLaunched] )
    VAR Aftcount =
        MAXX ( tab, 'Table'[Days Since ReLaunched] )
    RETURN
        IF ( Precount = -1 * Aftcount, 1 )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.