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
amanbhardawj
New Member

Power bi charts in desktop

Hi so I would like to create these dashed lines in my chart, any help or clues on this would really be

appreciated with an example. 🙂 

amanbhardawj_0-1731935380403.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @amanbhardawj ,

 

I think you can try to create a "Line and clustered column chart".

Here is the result based on my sample.

vrzhoumsft_1-1731996977342.png

Firstly we create a visual as below.

vrzhoumsft_2-1731997014239.png

2020 Value line = 1
Change Percentage = DIVIDE(SUM('Table'[VALUE]),[Value for 2020])

Then select the Error bar in analysis pane.

vrzhoumsft_3-1731997078401.png

Value for 2020 = CALCULATE(SUM('Table'[VALUE]),YEAR('Table'[Date]) = 2020)
Up = [Value for 2020]
Lower = SUM('Table'[VALUE])

Then turn on the data label for [Sum of Value] and [Change Percentage], you can transform the line type to dot and change the color as you want.

Finally we need to diy the data label for [Change Percentage].

Data Lable for Change Percentage = DIVIDE([Value for 2020] - SUM('Table'[VALUE]),[Value for 2020])

 

vrzhoumsft_4-1731997224145.png

You can download my sample file to learn more details.

 

Best Regards,
Rico Zhou

 

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @amanbhardawj ,

 

I think you can try to create a "Line and clustered column chart".

Here is the result based on my sample.

vrzhoumsft_1-1731996977342.png

Firstly we create a visual as below.

vrzhoumsft_2-1731997014239.png

2020 Value line = 1
Change Percentage = DIVIDE(SUM('Table'[VALUE]),[Value for 2020])

Then select the Error bar in analysis pane.

vrzhoumsft_3-1731997078401.png

Value for 2020 = CALCULATE(SUM('Table'[VALUE]),YEAR('Table'[Date]) = 2020)
Up = [Value for 2020]
Lower = SUM('Table'[VALUE])

Then turn on the data label for [Sum of Value] and [Change Percentage], you can transform the line type to dot and change the color as you want.

Finally we need to diy the data label for [Change Percentage].

Data Lable for Change Percentage = DIVIDE([Value for 2020] - SUM('Table'[VALUE]),[Value for 2020])

 

vrzhoumsft_4-1731997224145.png

You can download my sample file to learn more details.

 

Best Regards,
Rico Zhou

 

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

Jai-Rathinavel
Super User
Super User

Hi @amanbhardawj , I have created a sample view, you would need to use Line and Clustered column chart with dotted lines as format. Tweak your dax as per your business. Attaching the PBIX file below

Download PBIX

JaiRathinavel_0-1731942317571.png

 

Did I answer your question? Mark my post as a solution

 

Thanks,

Jai




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

Proud to be a Super User!





MFelix
Super User
Super User

Hi  @amanbhardawj ,

 

For this you need to do a combo line and bar chart and add also the errors bars.

 

Do you have a sample data that you can share?


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.