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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
wuzimuzyqtt
New Member

Measure in line chart problem

I have a hospital finance data set including the financial information (like net income etc.) for each hospital from 2011 to 2019. I am now creaing a line chart to show the net income by year for the selected hospital, and I want to add the average netincome for all the hospital by year into the chart. I am trying to use a measure average(net income) but when I add this into the chart it gives me a horizental line.. how can I make this average net income change by year in the chart? 

Thanks for any advice!

wuzimuzyqtt_2-1629919514841.png

 

PS:

There are 5 columns in the data, Hospital ID, Hospital Name, Year, Attribution, Value

Where the Attribution include different benchmark name like Net income, Operating revenue etc. and the Value column shows the exact number for the corresponding attribution.

 

 

3 REPLIES 3
wuzimuzyqtt
New Member

Hey Denis

Measure 2 = CALCULATE(AVERAGE('Benchmark-v5 $'[value]), ALLEXCEPT('Benchmark-v5 $' [attribution]), This is the formula I used for the measure. I unpivot the orginal data into "attribution" and "value", the value contains all the exact number and attribution contain all the category like net income, revenue and so on. 
Thanks!

Hi  @wuzimuzyqtt ,

 

Could you pls provide some sample data with expected output for test?

 

Best Regards,
Kelly

Did I answer your question? Mark my reply as a solution!

selimovd
Super User
Super User

Hey @wuzimuzyqtt ,

 

can you post the formula of the measure?

 

Best regards

Denis

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors