Forum Discussion
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
- tringuyenminh92Memorable MemberHi pkumar,
Could you please provide sample data and expectation as picture? So I could quickly create sample solution for you.- pkumarFrequent Visitor
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).
- tringuyenminh92Memorable Member
Hi pkumar,
You could try with calculated measure:
Success = DIVIDE(DISTINCTCOUNT(Data[Marketo Lead ID]), CALCULATE(DISTINCTCOUNT(Data[Marketo Lead ID]),ALL(Data)))
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