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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Adding Dynamic Vertical reference line to Barchart

Hi All, 

 

My dataset is as below.

Result Type

Age - Forecasted(Month)

Age - Current (Month)

Qty

NOMINAL

60

30

184817.997

NOMINAL

48

30

160860.2616

NOMINAL

36

30

135505.1271

NOMINAL

24

30

81276.15796

NOMINAL

18

30

67475.59567

NOMINAL

12

30

40034.11791

NOMINAL

9

30

33119.86705

NOMINAL

6

30

26202.99104

NOMINAL

3

30

19271.68226

UPPER_BOUND

60

30

377972.0389

UPPER_BOUND

48

30

328794.7661

UPPER_BOUND

36

30

276670.6652

UPPER_BOUND

24

30

165593.4012

UPPER_BOUND

18

30

137292.0072

UPPER_BOUND

12

30

81319.0919

UPPER_BOUND

9

30

67214.44798

UPPER_BOUND

6

30

53133.68476

UPPER_BOUND

3

30

39054.3245

 

Where Result type is Legend, Forecasted Age is coming from forecasted data and it will be always ranging from 3-60. Age - Current  in Month is the actual age which will be dynamic based on the selection of the filter. The bar represents Sum of Qty for each Result Type. So chart will look like below.

 

 

This is the current chartThis is the current chart

Now I want to add a reference line which will represnt the column 'Age - Current  in Month' and bar graph should show like this.

This is the expected chartThis is the expected chart

 

Please help me to resolve this issue.

 

Thanks,

Rajesh S Hegde

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

maybe the attached solution works for you.

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

2 REPLIES 2
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

maybe the attached solution works for you.

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Anonymous
Not applicable

This works as expected.

 

Thank you for your help.

 

Regards,

Rajesh S Hegde

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.