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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dv1407
Regular Visitor

Power BI chart with target line

Hello, I would like to make a diagram showing the actual and the target line (green), as shown in the photo. How do I get that in PowerBi? The image is from Excel.

Screenshot 2023-07-12 170438.png

 

I tied a sharepoint list in which it counts the lines with the status "Done" and these are then provided with a month. Now the target line must count all rows and distribute them over 12 months.

 

2 REPLIES 2
dv1407
Regular Visitor

Hello, please help me a little bit more.

What would be the right choice in Analytics to get the line? Here is the calculation for each month. I'm still missing the filter for the "Done" status here, how do I get that into the formula?

 

Laufende Summe von Anzahl von field_8 in Monat =
CALCULATE(
COUNTA('tbl_turnus_aufträge'[field_8]),
FILTER(
CALCULATETABLE(
SUMMARIZE(
'tbl_turnus_aufträge',
'tbl_turnus_aufträge'[Modified].[MonthNo],
'tbl_turnus_aufträge'[Modified].[Monat]
),
ALLSELECTED('tbl_turnus_aufträge')
),
ISONORAFTER(
'tbl_turnus_aufträge'[Modified].[MonthNo], MAX('tbl_turnus_aufträge'[Modified].[MonthNo]), DESC,
'tbl_turnus_aufträge'[Modified].[Monat], MAX('tbl_turnus_aufträge'[Modified].[Monat]), DESC
)
)
)

Kishore_KVN
Super User
Super User

Hello @dv1407 ,

 

In Power BI Desktop create a line visual and create a target line with the help of Analytics tab and it will help you to create a target line. 

 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.