Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Measure that counts multiple values and shows as percentage

Hi,   Im looking to create a measure to show a percentage of appointments that have either "ATTENDED EARLY" or "ATTENDED IN TARGET".   The field has the following appointment outcomes "ATTENDED E...
  • Mariusz's avatar
    Mariusz
    6 years ago

    Hi Anonymous 

     

    Sorry, my bad NOT needs to go before column as in the example below.

    No idea why you showing 0 as I can't see your data, can only guess, but you can:

    1. format the measure to %
    2. create a data sample so I can apply the calculation to and test.
    Measure 9 = 
    DIVIDE( 
        CALCULATE(
            COUNTROWS( 'Product' ),
            'Product'[Color] IN { "Azure" }
        ), 
        CALCULATE(
            COUNTROWS( 'Product' ),
            NOT 'Product'[Color] IN { "Blue" }
        )
    )

     

    Best Regards,
    Mariusz

    If this post helps, then please consider Accepting it as the solution.

    Please feel free to connect with me.
    LinkedIn