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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

using calculated measure - percentage as a value in line chart (Please help)

Hi Expert,

I have a need to show the percentage of values in line chart.

my data in matrix looks good.

RTS% is a calculated measure. = RTS/First Departure

Yiling_0-1603163497376.png

i wanna use line chart to present each depot RTS% - percentage as value over the last 12 month

 

it shows like in below, looks wrong.

 

can anyone please help me on this? am i using the wrong chart? if so, what type of line chart i can use? Please advise.

 

Appreciate 🙂 

Yiling_1-1603163826361.png

 

1 ACCEPTED SOLUTION

Great to hear @Anonymous
Please can you mark the solution that helped you so others can learn from it too, or if you did something different please post here what you did and mark your own post as the solution.
Thanks!

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

6 REPLIES 6
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

It’s my pleasure to answer for you.

According to your description, I think if the data can be displayed correctly on the matrix, maybe the problem isn’t on measure.

Try to drill through the line chart using the complete date instead of just selecting year and month.

 

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

thank you i fixed it 🙂 

Great to hear @Anonymous
Please can you mark the solution that helped you so others can learn from it too, or if you did something different please post here what you did and mark your own post as the solution.
Thanks!

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

AllisonKennedy
Super User
Super User

What fields/measures are in your matrix? It looks like you might be missing a row context in the line chart that you had in the matrix - is First Departure a column or a measure? Can you please share the DAX formulas for the RTS, First Departure, and RTS% so we can help troubleshoot better?

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Anonymous
Not applicable

hi @AllisonKennedy 

 

i wanna build like this line chart in power bi, in excel no problem, do you know what measure i need to create to make it work? thanks.

Yiling_0-1603228698632.png

 

Anonymous
Not applicable

hi @AllisonKennedy the first departure is also a calculated measure, 

 

RTS = sum(table(rts))

 

First departure =

 

Capture.PNG

RTS% = RTS/(Nooffirstdeparture)

 

no of first departure = calculate(counta(table(services),table(first departure=1)

 

hope it helps.

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.