The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Solved! Go to Solution.
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.
In addition, you may try to use a combination chart.
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] ) ))
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.
@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.
@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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
93 | |
81 | |
63 | |
56 |
User | Count |
---|---|
248 | |
123 | |
111 | |
78 | |
74 |