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
Turf03
Helper II
Helper II

Identify significant dates on a line chart

Is there a way to insert a line or a call out on specific dates on a line chart. I'd like to point out significant dates.

 

 

1 ACCEPTED SOLUTION
P_D_G
Resolver III
Resolver III

Hi @Turf03 ,

 

you might wanna try pulse chart which has a similar funcitonality.

Best,

View solution in original post

5 REPLIES 5
P_D_G
Resolver III
Resolver III

Hi @Turf03 ,

 

you might wanna try pulse chart which has a similar funcitonality.

Best,

v-xicai
Community Support
Community Support

Hi @Turf03 ,

 

You may insert Shapes (such as line or Triangle) into the specific location which you want on Axis of chart,  and it is not dynamic as explained. See the attached screenshot.

179.png

In addition, you may try to use a combination chart.

  1. Create a "line and stacked column chart"
  2. Put column [Date] into shared axis , and put [values] into line values.
  3. Create a measure that evaluates to the maximum value when Date=specific date(otherwise blank), put this measure into column values.

You may create measure like DAX below:

 

 

Specific Date line =  IF ( VALUES ( Table1[Date] ) = DATE ( 2020, 9, 1 ), MAXX ( ALL ( Table1[Date] ), MAX ( Table1[Sales] ) ))

 

180.png

Best Regards,

Amy 

 

Community Support Team _ Amy

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

@Turf03 , The information you have provided is not making the problem clear to me. Can you please explain with an example.

ideally, Insert should have value and removal means blank value
Appreciate your Kudos.

@amitchandak for example, I would like to identify a holiday on the line graph

@Turf03 , For that One way is to have conditional formatting, which only possible when you have one measure and no legend .

So create a measure like example

 


Color Date =
var _min =minx(allselected(Date,Date[Year])
return
Switch( true(),
FIRSTNONBLANK('Date'[Year],year(TODAY()))-_min =0 ,"lightgreen",
FIRSTNONBLANK('Date'[Year],year(TODAY()))-_min =0 ,"blue",
"red")

 

Now first create BAR visual and do conditional formatting and in that use "Field Value" Option

refer

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

 

Other is have a line with blank and nonblank values based on condition. Refer I use that in this blog

https://community.powerbi.com/t5/Community-Blog/Display-Label-Only-on-the-Last-Data-Point-of-the-Lin...

 

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.