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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Get ratio per day from a table with events on Date + Time

Hello,

 

Source data :

I have a data table with each line correspondong to an 1 event. Each event ahs an event start date dd/mm/yyy hh/mm/ss.

James_C_0-1651654647276.png

Table is about 2 000 lines with 20 columns and information is strictly confidential so I can't show much more than the cropped picture above.

 

Goal : 

I want to display a bar visual on my report which presents for each day the percentage % of events successfully completed in less than 3 hours. Some days there may be 50 events and some others 0.

  • The vertical shows percentage (0-100%). The horizontal shows by default days of the current month or months or days of one particular month (picture below)

PBI.jpg

  •  I want this visual to be independent from the slicer I have for my other visuals, and if possible have its own slicer for selecting  particular month(s). By default it would display current month's days only
  • If possible, I want to show the bar under 80% red and the bar above 80% green.

 

Already have : 

- A calculated column (binary yes/no) determining wether the event has been successfully completed in less than 3 hours.

 

Difficulty encountered : 

As I am relatively new to power BI, I have no idea how to achieve what I want. I nevertheless tried to think of the steps :

  1. Create a new table with each line being a day, 1 columns the day and 1 column the ratio. The table has to add a new line for each new day when needed <-- Edit : I have created a table but still struggle to calculate the column "ratio"
  2. From that table make a bar graph <-- Edit : I have successfully created a graph, except in add all data for one month through all years (march is both amrche 2020, 2021, 202...) This I know
  3. Make bars color change depending on value <-- Haven't researched this yet
  4. Make the bar graph independent from main slicer and attach it to a new slicer ? <-- Edit : parameters of the visual not displaying colors correctly

Hope I'm being clear and concise enough, any link to tutorial, tips or help with any of the steps is more than welcomed !

1 REPLY 1
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Is it possible to provide your template data and additionally show the results you want?

 

Best Regards

Lucien

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors