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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Tobias106
Helper I
Helper I

Add horizontal average lines per half-year

Hello together,

 

I have a stacked column chart. X-axis starts on 01.01.2021 and goes till 31.12.022.

 

Now I want to add a average line per half-year into this chart.

 

Example: I have order values from 01.01.2021 till 30.06.2021. Now I want the average of the order value as line (number of data sentences).

Next line should show the average from 01.07.2021 till  31.12.2021 and so on.

 

So 4 horizontal lines for the 2 years in the graphik.

 

I have a calender in my table.

 

Maybe somone can help me with the measure 🙂

 

Thank you 

 

Tobias

1 REPLY 1
Tobias106
Helper I
Helper I

No one can help ?

 

I achieved the measure code to show the average of every year (in this case the measure for 2021):

 

IF(MAX('0_Kalender'[Jahr])=YEAR(TODAY())-2,CALCULATE(AVERAGEX(VALUES('0_Kalender'[Date]),'1_Auftragseingang'[AE ohne 0]), '1_Auftragseingang'[jahr]=YEAR(TODAY())-2, ALL('0_Kalender'[Date])))

 

 

But I don't no how can I change the code, that it shows the average lines for H1 2021, H2 2021, H1 2022, H2 2022.

 

I tried it with datesbetween, but it does not work. 

 

Any idea?

 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.