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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Clustered Column Chart Question

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.

sltraffic_0-1618942462709.png

Here is an example of my raw data;

sltraffic_1-1618942520686.png

 

 

1 ACCEPTED 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

View solution in original post

4 REPLIES 4
selimovd
Super User
Super User

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.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 
Anonymous
Not applicable

I got this to work;

Duration 30 Min or less =
CALCULATE(
COUNTROWS( 'eventsList Total' ),
'eventsList Total'[Lane Blockage Duration] <= 30
)

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

Anonymous
Not applicable

That worked great...thank you so much!

 

That being said, any suggestions as to how I could create this bar chart?

sltraffic_0-1619187302705.png

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.