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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
pkumar
Frequent Visitor

Percentages in Line Chart

My line chart is measuring 3 things. I want line A to be measured as a percentage of line B. However, it is being measured as a percentage of line B and C. Is there a way to fix this?

5 REPLIES 5
tringuyenminh92
Memorable Member
Memorable Member

Hi @pkumar,

Could you please provide sample data and expectation as picture? So I could quickly create sample solution for you.

Line Graph.PNG

Chart.PNG

 

Essentially I want the graph to look how it does right now, but I want the "Success" line to be a percentage and not a sum. Also, it should be a percentage of Marketo Lead ID, not a percentage of Marketo Lead ID and Activity Type (grand total).

Hi @pkumar,

 

You could try with calculated measure:

Success = DIVIDE(DISTINCTCOUNT(Data[Marketo Lead ID]), CALCULATE(DISTINCTCOUNT(Data[Marketo Lead ID]),ALL(Data)))

Screenshot 2017-01-04 21.16.27.png

 

As my sample: there are total 130 leads, and 5 leads in April 17, 2016, so the % = 5/150 = 3.86%. Is is correct?

For filter with anothe columns/fields, you could replace ALL(Data) method by ALLEXCEPT(Data,columnfieldInTheSlicer) or try with ALLSELECTED method.

 

If this works for you please accept it as solution and also like to give KUDOS.

Best regards
Tri Nguyen

I'm still a little confused...I'm trying to get the success percentage to be a percentage of Activity Type. So if you look at the line graph I uploaded highlighted, it should be 1701/31075 = 5.47%

Hi @pkumar,

Could you please share your sample data so i could quickly understand and solve it for you? ❤️

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.