Forum Discussion

DNA's avatar
DNA
Frequent Visitor
9 years ago

Line Chart With Values As a %

 

What I'm trying to do is a line chart that's basically the same as a 100% Stacked Column Chart, but displays in a line graph format

 

X Axis: Month Aggregates (Mar, April, May)

Y Axis: Percentages (0 - 100%)

Legend: Consists of 5 categories (Conforming, FHA, Non-Conforming, USDA, VA)

 

The line graph will initiallly plot the count of these values for each month in these different catgegories.  There is an option to show the value as a percent of the grand total. However, i don't want the percent of the grand total. The grand total takes March values, and divides by the total of March, April, and May.  

 

I would want the percent breakdown for each category just within a given month.  So I want a % breakdown for Mar, one for April, and one for May and plot accordingly on the line graph.  This is easily done with a 100% Stacked Column Chart as well as a Matrix.  However,  I can't get this to work for a Line Chart

 

Example:

Month: March

Conforming: 100 

FHA: 50

NonConforming: 25

USDA: 10

VA: 5

 

Total:  190

 

So the % breakdown for the month of March is the following:

Conforming: 53%

FHA: 26%

NonConforming: 13%

USDA: 5%

VA: 3%

 

I don't want to take Conforming values for March (100) and divide them by the grand total of March, April and May.

 

Does this make sense any thoughts to work around this for a line chart?

 

 

 

 

 

 

7 Replies

  • shkabuzar's avatar
    shkabuzar
    Frequent Visitor

    Hi,

    Please try this.

    Measure =
    DIVIDE (
        SUM ( Table1[Count] ),
        CALCULATE ( SUM ( Table1[Count] ), ALLSELECTED ( Table1[Category] ) )
    )
    • Anonymous's avatar
      Anonymous
      Not applicable

      shkabuzar thanks, your help is the solution. I can show my graphic i want.

  • mdannemiller's avatar
    mdannemiller
    Frequent Visitor

    Could you create a column which calculates the percentage for the month, and then use a stacked line chart?  If every month equals 100% it should look like a 100% stacked column chart.

  • airaqi's avatar
    airaqi
    Frequent Visitor

    Hi DNA

    I am facing the same issue, did you find a solution?

    thanks

  • shkabuzar's avatar
    shkabuzar
    Frequent Visitor

    Same issue with my report,  please some one provide solution for this