Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello,
I am trying replicate the following chart (or as close as I can in Power BI) and allow the periods to be user defined or require minimal effort to change the periods. Thanks in advance for any guidance on this request.
Here is an example of my raw data;
Solved! Go to Solution.
Hi, @Anonymous
Try measure as below:
Duration Greater than 30 Less than 2 Hours =
CALCULATE (
COUNTROWS ( 'eventsList Total' ),
'eventsList Total'[Lane Blockage Duration] > 30
&& 'eventsList Total'[Lane Blockage Duration] <= 120
)
Best Regards,
Community Support Team _ Eason
Hey @Anonymous ,
you can create a measure for each "bucket":
Duration 30 Min or less =
CALCULATE(
COUNTROWS( myTable[Event ID] ),
myTable[Lane Blockage Duration] <= 30
)
If you want to make that selection more dynamic add a what-if-slicer and instead of the number (30 in this case) use the SELECTEDVALUE from the what-if-slicer.
I got this to work;
But I ran into an issue for the Greater than 30 Less than 2 Hours measure. How do I set that up?
Hi, @Anonymous
Try measure as below:
Duration Greater than 30 Less than 2 Hours =
CALCULATE (
COUNTROWS ( 'eventsList Total' ),
'eventsList Total'[Lane Blockage Duration] > 30
&& 'eventsList Total'[Lane Blockage Duration] <= 120
)
Best Regards,
Community Support Team _ Eason
That worked great...thank you so much!
That being said, any suggestions as to how I could create this bar chart?
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 45 | |
| 38 | |
| 34 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 66 | |
| 65 | |
| 31 | |
| 26 | |
| 26 |