Power BI Practice: Average Line vs Median Line in Power BI Visualization

Mohamad MahmoodMohamad Mahmood
1 min read

Scenario:

You have a clustered bar chart that contains a measure named Salary as the value and a field named Employee as the axis. Salary is present in the data as numerical amount representing US dollars. You need to create a reference line to show which employees are above the median salary.

Solution: You create an average line by using the Salary measure. Does this meet the goal?

Answer: No, creating an average line using the Salary measure does not meet the goal of showing which employees are above the median salary. An average line represents the mean salary, not the median. To achieve the goal, you should create a reference line based on the median salary.

Refer:

0
Subscribe to my newsletter

Read articles from Mohamad Mahmood directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Mohamad Mahmood
Mohamad Mahmood

Mohamad's interest is in Programming (Mobile, Web, Database and Machine Learning). He studies at the Center For Artificial Intelligence Technology (CAIT), Universiti Kebangsaan Malaysia (UKM).