Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
DNA
Frequent Visitor

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?

 Line Graph_Percent of TIme Aggregate.jpg

 

 

 

 

 

7 REPLIES 7
shkabuzar
Frequent Visitor

Hi,

Please try this.

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

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

shkabuzar
Frequent Visitor

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

 

anandprakashnm
Frequent Visitor

same issue with me

airaqi
Frequent Visitor

Hi @DNA

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

thanks

airaqi
Frequent Visitor

Hi,

someone else who can help?

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors