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

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 @Yiling
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, @Yiling 

 

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.

thank you i fixed it 🙂 

Great to hear @Yiling
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

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

 

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
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.