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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Display median value in column chart

Hi,

I have this file Median in chart.pbix with sample data and easy visualizasation. Data contain list of projects and their delay. 
And I want dispaly median and average avlue of project delay it the bar chart. I can be done by different color of column which is on position of median value or display some symbol/object above columns.
At the picture is scratched how it could looks like.
Can somebody help me with this task please? 

PetrK_0-1713777874066.png

 

2 REPLIES 2
johnbasha33
Super User
Super User

@Anonymous 

To display the median and average values of project delay in the bar chart, you can follow these steps in Power BI:

1. **Calculate Median and Average**: First, you need to calculate the median and average values of project delay. You can do this using DAX measures. Here's how you can calculate them:

```DAX
Median Delay = MEDIAN('YourTable'[Delay])

Average Delay = AVERAGE('YourTable'[Delay])
```

Replace `'YourTable'` with the actual name of your table and `'Delay'` with the name of your delay column.

2. **Create Bar Chart**: Create a bar chart visual in Power BI and add your project names to the Axis and project delays to the Values section.

3. **Add Median and Average Lines**: To add median and average lines to the chart, follow these steps:

a. Go to the formatting options of the bar chart visual.

b. Navigate to the "Data colors" section.

c. Click on the "+" button to add a new rule.

d. Choose "Median Delay" from the dropdown menu.

e. Set the color to differentiate the median line from the other bars.

f. Repeat steps c to e for the "Average Delay".

This will add median and average lines to your bar chart, making it easy to visualize these values alongside your project delays. You can customize the appearance of these lines to make them stand out, such as using different colors or line styles.

Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

Anonymous
Not applicable

this doesn't solve my problem, I need chart with delay value in x-axis as is on picture and in file.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors