Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Cannot create measure for waterfall chart

Hello,  I have the following table:   Order No City State Customer Type Effect Name Effect Value Income Order Quantity Effect Name & Customer Type 5014-1 Melbourne VIC Home Office...
  • v-kkf-msft's avatar
    4 years ago

    Hi Anonymous ,

     

    You can create the following measure and then use the Ultimate Waterfall visual.

    Price = 
    SUMX ( ALLSELECTED ( 'Table' ), 'Table'[Income] )
        / SUMX ( ALLSELECTED ( 'Table' ), 'Table'[Order Quantity] )

     

    Or use the following measures and Simple Waterfall visual.

     

    Price_Measure = 
    DIVIDE (
        [Price],
        CALCULATE (
            DISTINCTCOUNT ( 'Table'[Effect Name & Customer Type] ),
            ALLSELECTED ( 'Table' )
        )
    )
    Effect Value_Measure = SUM ( 'Table'[Effect Value] ) + [Price_Measure]

     

     

    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.