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
dinesharivalaga
Helper II
Helper II

line graph for percentage calculation is not displaying correctly in Line and clustered column chart

Hi All ,

 

I have a scenario to generate values and percentage in same graph (hence used line and clustered column chart) .

X axis has some age bucket (days) , Y axis has amount , and Line should be % of each bars .

Here all working fine if i used the data from master source file .

But in X axis , the days are not in order as attached below ..

dinesharivalaga_1-1676956315147.png

See here the days should start from 1-30 , 31-60 and so on ...

But if we sort with age bucket (days) then it starts from 121 , for this case i have created a new table to make this order correctly like below ..

dinesharivalaga_2-1676956419312.png

After that i can able to sort the days in correct order but once i applied this , the % value changed into 100% for all bars .

dinesharivalaga_3-1676956559748.png

Now days (X axis) fixed and sorted in expected order but % value changed . I don't know why it happening when i applied relational table column into this graph ..

Can you help to fix this ?

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@dinesharivalaga , If it is % of the total, you need a measure like

 

% = divide([Measure], calculate([Measure], allselected()) )

 

And you should use combo visual, Line, and column Bar visual. Do not use analytics pane for this

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@dinesharivalaga , If it is % of the total, you need a measure like

 

% = divide([Measure], calculate([Measure], allselected()) )

 

And you should use combo visual, Line, and column Bar visual. Do not use analytics pane for this

Hi @amitchandak  , thanks for your response ..

will try this measure and i don't understand this "And you should use combo visual, Line, and column Bar visual. Do not use analytics pane for this" ..

Can you elaborate a bit?

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.