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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
Spyrosmak
Frequent Visitor

Increase Data Invervals and dynamic dotted line in front of the last bar of a graph chart

Hello everyone,

I have some sales data on the y axis and the current interval is 2. Meaning that data goes from 0 to 8 with a pace of 2. 
Does anyone know if I can customise this pace 1,2,3 etc. I have tried to start from a minimum range of 2,3 etc but it doesn't work as I would like it to. Since I want the pace to be 3 and range gives me random interval.

 

Spyrosmak_0-1721221165369.png

 

Secondly I would like to know if I can add a dynamic dotted line in the below chart like this. Meaning that since the graph will have updated data, I would like to know if I can put a line like this before the last bar. The goal is to differentiate the last bar from the others.

Spyrosmak_1-1721221348596.png
Thank you in advance if you can help me with this.

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi, @Spyrosmak 

Regarding the first question, maybe you can modify the Range setting in the Y-axis settings and turn on the Logarithmetic scale.

vyohuamsft_0-1721627841038.png

 

Regarding the dynamic dashed line, we can find the Reference Line in format, click to create a new line, and then put the created measure into Value

vyohuamsft_2-1721629018400.png

Here is my preview:

vyohuamsft_1-1721628838676.png

The measures you create are shown below. My measures and data are just an example and are just for reference.

DottedLine = IF(MAX('Table'[Date]) = TODAY(), MAX('Table'[Sales]), BLANK())

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

Hello and Thank you for your recommendation. The first interval solution doesn't work for the reduction of the data points that I want to achieve. The second solution in my case creates a horizontal line and not a vertical one. I have dates in the x axis. 
Thank you

Spyrosmak_0-1721819362404.png

 

amitchandak
Super User
Super User

@Spyrosmak , for month year, I doubt you can have that line. But if you use date, means continuous axis. You can use constant lines on X-Axis too. And you can use a measure on that

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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