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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to add Dashed Line (Shape, NOT Chart) in Power BI?

Hi, I want to add Dashed Line in Power BI, just as a shape, not in graph. In Insert->Shape, I can find Line, but the Line is solid. I am unable to change it's properties to Dashed. Is there any way we can do that? Is anything available in the market? Some custom visual, maybe?

 

Any recommendation would be appreciated. Thanks.

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

Add the following measure and drop it on a card Visual then format as you need, you can adjust the height in the measure:

Dash Line =  REPT("|"&UNICHAR(10),20)

Fowmy_0-1597645587312.png

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

8 REPLIES 8
Coriel-11
Resolver I
Resolver I

If you want to do diagonals, I recommend creating in DAX/importing/entering a mini table like this

Value1    Value 2

0             0

1             1

And then making a line chart from it. Remove all the axes, titles etc. and then you can style/size/place it as you like.

Matt

BritPearl
Regular Visitor

Add a rectangle, turn off "Fill" and "Border", and type in "- - -" as text & make it bold

Super easy to adjust the length of the dotted line by just adding more dashes and spaces, and optionally rotate the shape by 90 degrees for a verticle line!

Fowmy
Super User
Super User

@Anonymous 

Add the following measure and drop it on a card Visual then format as you need, you can adjust the height in the measure:

Dash Line =  REPT("|"&UNICHAR(10),20)

Fowmy_0-1597645587312.png

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

@Fowmy 

Thank you so much

Anonymous
Not applicable

@amitchandak , thank you for reply. Please see below image. This should clear things up. I added this Blue line through Insert->Shapes->Line. I want to make Blue Line Dashed.

 

ibraheem7_0-1597643234327.png

 

Hi @Anonymous ,

 

Add a Blank Button,

 

Go to Power Point and create a Dashed Line. Sve that Dashed line as image.

 

Bak to Power BI, go to fill section in the Blank Button and add the image (Dashed Line).

 

You can also try

 

https://community.powerbi.com/t5/Desktop/Dotted-line-around-the-data-section-in-the-Report-view/td-p/488192

 

Regards,

Harsh Nathani

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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