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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Zakaria_1980
Post Patron
Post Patron

Plot arrow automatically

Hi,

Please under my DB, i have one column called current week and another column with date. I ve graph where i have actual sales per date (i display only month&year). I need that an arrow will be plotted automatically depending on the current week column in the same graph.

Thanks in advance.

 

9 REPLIES 9
Icey
Community Support
Community Support

Hi @Zakaria_1980 ,

 

Power BI doesn't support to plot arrow in a line chart currently. How about plotting a dynamic reference line on x-axis?

In your scenario, you can

1. create a "line and stacked column chart";

2. Put column [Date] into shared axis and put [actual sales] into line values.

3. Put column [CurrentWeek] into column values and choose "Count".

    Or, create a measure like this, put this measure into column values.

CurrentWeek Measure = IF(SELECTEDVALUE('Table'[CurrentWeek])<>BLANK(),1)

current.PNG

current2.PNG

To hide the y-axis (column), do this:

current3.PNG

 

BTW, .pbix file attached.

 

 

Best Regards,

Icey

 

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

please how we can hide even the numbers highlited in yellow (left hand side) ?

imge.PNG

Thanks

 

 

 

switch off the Y axis in your settings  (the little painbrush)





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




it seems it's good, i adapt it to my DB, but we have another issue, you example is showing the case that we are in the same year 2020. however my case is following the progress on projects throughout their life cycle which may take 3 or more years.

how can we deal with the same example if we have the current week but related to many years (2018, 2019 & 2020)?

can you take the same exapmle and share with me the output as you did in power bi report

 

Thanks

Hi @Zakaria_1980 ,

 

Is this what you want?

currentweek2.PNG

For hide the y-axis, try to change the color to white.

currentweek3.PNG

 

 

Best Regards,

Icey

 

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

i would like to show the bar chart for selected Week as you did before but only for the current year. not plotting it for all years that i've in my DB.

 

because i'd like to show the progress on the project until current week in current year.

 

Thanks in advance.

 

Br,

 

Hi @Zakaria_1980 ,

 

Just change the [CurrentWeek] column like so:

CurrentWeek =
VAR Week_ =
    WEEKNUM ( [Date], 1 )
VAR CurrentWeek =
    WEEKNUM ( TODAY (), 1 )
VAR Year_ =
    YEAR ( [Date] )
VAR CurrentYear =
    YEAR ( TODAY () )
RETURN
    IF ( Year_ = CurrentYear && Week_ = CurrentWeek, "W" & CurrentWeek )

 

 

Best Regards,

Icey

 

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

 

amitchandak
Super User
Super User

please I need the arrow to be shown automatically. in the below case, i'm plotting the arrow manually to refelect where we are in W18. i need the same but the plotting of the arrow will be shown automatically.

Thanks in advance.

 

 

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.