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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Giles99
New Member

Plotting occurrences of an event by category over time

Hi All,

 

I am trying to plot the frequency of the occurence of events over time, such that the x-axis is the date, and the y-axis has the categories of events e.g. sale/refund/discount applied/etc, with the values for occurence effectively being binary - either it occurred or it didnt, with the occurence of an event on a date represented by a dot on the graph where these axes intersect.

 

I have tried to achieve this using a scatter plot in PowerBI, however I am having difficulty with the constraints around numerical data being required.

 

I have mocked up the graph as best I can in excel below. It effectively conveys what I am trying to construct, however the x-axis would show the categories such as sale/refund/discount applied/etc rather than the number range 1-6 that is actually shown.

 

Giles99_0-1646109129727.png

 

 

 

1 ACCEPTED SOLUTION
AllisonKennedy
Super User
Super User

@Giles99  You can get close with an Area chart: 

AllisonKennedy_0-1646128729091.png

 

But still need to convert the type to a numeric value and then do a bit of magic with the area chart formatting: https://excelwithallison.blogspot.com/2021/09/visual-review-area-chart.html 

 

Otherwise you could build your own visual using Charticulator or Deneb, or there may be something close in the marketplace already?

 

See the attached pbix under signature and let me know if you have any questions on what formatting I changed. 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

2 REPLIES 2
AllisonKennedy
Super User
Super User

@Giles99  You can get close with an Area chart: 

AllisonKennedy_0-1646128729091.png

 

But still need to convert the type to a numeric value and then do a bit of magic with the area chart formatting: https://excelwithallison.blogspot.com/2021/09/visual-review-area-chart.html 

 

Otherwise you could build your own visual using Charticulator or Deneb, or there may be something close in the marketplace already?

 

See the attached pbix under signature and let me know if you have any questions on what formatting I changed. 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

You're my hero

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.