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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
marksaba
Helper II
Helper II

Line Chart with Events

I have a simple line chart that charts POS Sales over time. I have another table that breaks out all US Holidays with their date. I would like to use the US Holidays Table to have Events layered over my Line Chart (See below). Is this possible, either in a standard visual or an Imported Visual?

 

Current Visual:

Line Chart No Events.png

Desired Outcome:

Line Chart with Events.png

 

Thanks!

11 REPLIES 11
parry2k
Super User
Super User

@marksaba hmmm, in my opinion not a good approach, reason behind that is you will see holidays thru out the year and when don't have a sales you will have broken POS sales line which I don't think will look nice or good.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

I understand what you mean. The reason I wanted to show holidays when there is no POS Sales is because in our database, we report POS Sales for the week by Week End Date so a holiday could be in the middle of a week and not necessarily on the day shown for the Week End Date. Is it easy to showcase this both ways?

parry2k
Super User
Super User

@marksaba quick question for you, do you want to show the bar when there is a holiday but no sales, for example in the pbix file you shared, Jan 1 is a holiday but there are no sales for that day, the solution is going to be different based on your answer. I assume you don't want to show the bar but want to confirm.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Yes, ideally it would show all holidays regardless of Sales. Thank you!

parry2k
Super User
Super User

@marksaba error bar setting is to share skinny line, not for the label, dynamic label is in the data label section. Maybe easier if you share pbix file with the sample data and I will put together something for you.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

That would be hugely appreciated, thank you! Here is a Dropbox link to the sample file: https://www.dropbox.com/scl/fi/8hdigbhxj1vm14wobpt8s/Error-Bars-Sample.pbix?rlkey=s63d2azw4wvjwf1867...

parry2k
Super User
Super User

@marksaba with error bars you can get this skinny line:

 

parry2k_0-1694551696726.png

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Can you show me the selections made in the Error Bars section to accomplish this? If I try using Error Bars, it needs a value as opposed to text. The goal would be to have what you're showing but with a Text Label at the top or bottom of that line as well. Thanks

Screenshot 2023-09-12 171935.png

parry2k
Super User
Super User

@marksaba you can surely show the data labels using custom data labels by creating a measure, that shouldn't be the issue. Did you try error bars?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@marksaba you can surely do that, add a measure where date = holiday date otherwise return blank, and then use a combo bar and line chart and use this measure for the bar chart, alternatively, you can also explore error bars.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Good tip! However, it's not 100% what I was looking for. I'd prefer it to be a dashed thin line and the thinnest I can make a bar chart is still thicker than I'd like. Additionally, I'd like the Data Label to show the Holiday. Right now, it just appears as 1 (Count of Holiday).

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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