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
vividarinda
Helper I
Helper I

How to add an max /line to column chart?

Hello guys,

I have a simple lince chart and need to add a max on the chart or line chart. 

This seems simple but yet again I'm having trouble.

 

The red lines in this chart are drawn with a screenshot app. But in data the red line have not the calendar data.

How can I make them using PowerBI?

vividarinda_0-1710916329956.png

vividarinda_1-1710916355948.png

 

Raw Data :

nomodelcalendarvaluetype
 777D 544BS, VMTP, E1A (554)
 777D 440BS, VMTP, E2A (440)
 777D 600BS, VMTS, E1A (600)
 777D 400GY, GT-4B, 4H (400)
 777D 654MICH, X-TRACTION, B (654)
 777D 514HAIAN - LUAN H710, E4 (514)
16xxx1777D12/12/2023400tkph site
16xxx1777D1/1/2024200tkph site
16xxx1777D18/11/2023256tkph site
16xxx1777D25/09/2023396tkph site

 

Thanks!

3 REPLIES 3
v-jialongy-msft
Community Support
Community Support

Hi @vividarinda 

 

Create a Measure for Maximum Value: First, you need to create a measure that calculates the maximum value of your data. You can do this by going to the "Modeling" tab in Power BI Desktop, and then selecting "New Measure". Here's an example DAX formula you could use:

MaxValue = MAX('YourTableName'[value])

 

Add the Measure to Your Chart: Once you have your measure,you can use the Combo chart visual. This allows you to display columns for your primary values and a line for the maximum value measure you just created.

 

 

 

 

 

 

 

Best Regards,

Jayleny

 

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

Hi @v-jialongy-msft ,

I'll try your suggest but in visual show like this. I want to show 6 line based on type.

vividarinda_1-1711008714744.png

 

Hi @v-jialongy-msft ,

Thanks for your fast response. Can you recommend me visual for combo chart?

vividarinda_0-1711007650380.png

 

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.