Forum Discussion

t_patts's avatar
t_patts
Frequent Visitor
4 years ago
Solved

Modeling Changes to Pi Chart Over Time

How can I model the changes to a Pi chart over time? Some context: I have a report for the amount of items that are late broken out by their level of lateness in Pi chart form. My client has asked ...
  • AlexisOlson's avatar
    4 years ago

    A stacked area or stacked bar chart are decent options to visualize this sort of thing.

     

    Here are examples of what they might look like:

     

  • AlexisOlson's avatar
    AlexisOlson
    4 years ago

    Yes, this is possible. You just need to write a measure to take the proportion over the appropriate granularity. For example, the measure for your bars might be

    Proportion =
    DIVIDE (
        COUNTROWS ( Table1 ),
        CALCULATE ( COUNTROWS ( Table1 ), ALL ( Table1[Late Level] ) )
    )

    and the line measure

    Late% =
    DIVIDE (
        CALCULATE ( COUNTROWS ( Table1 ), Table1[Late Level] <> "On Time" ),
        CALCULATE ( COUNTROWS ( Table1 ), ALL ( Table1[Late Level] ) )
    )