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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
gyeea84
Regular Visitor

Same hour different result

Hi, 

 

I have a table with following data

gyeea84_2-1626181028778.png

 

which showing pick time and order release time per route. In this example, route 21B115 was released at 10 and picked in hour 10,11,and 12. I would like to show a chart where it show "Hour" in X-axis and "Amount" in Y-axis. Since I have 2 different hour result (pick and order release), how to I do a calculate based on same hour with two different result. 

 

For example, what I have done in Excel, result should be look something like this. 

gyeea84_3-1626181042567.png

 

Can anyone help on this matter? Thanks. 



 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @gyeea84 ,

Here are the steps you can follow:

1. Click "Enter data" to manually create a table with numbers 0-24

vyangliumsft_0-1626331391692.png

2. Create measure.

measure_order =
CALCULATE(SUM('Table'[QuantityAsDPack]),FILTER(ALL('Table'),'Table'[RouteNo]=MAX('Table'[RouteNo])&&HOUR('Table'[OrderRelelseTime])=MAX('X'[Hour])))
measure_Pick =
CALCULATE(SUM('Table'[QuantityAsDPack]),FILTER(ALL('Table'),'Table'[RouteNo]=MAX('Table'[RouteNo])&&HOUR('Table'[PickedTime])=MAX('X'[Hour])))

3. Select the Clusterd column chart, place [Hour] of the X table in Axis, and place [measure_order] and [measure_Pick] in Values.

vyangliumsft_1-1626331391694.png

4. Open Format – X axis – set Start=6, End=12.

vyangliumsft_2-1626331391696.png

5. Result:

vyangliumsft_3-1626331391698.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi  @gyeea84 ,

Here are the steps you can follow:

1. Click "Enter data" to manually create a table with numbers 0-24

vyangliumsft_0-1626331391692.png

2. Create measure.

measure_order =
CALCULATE(SUM('Table'[QuantityAsDPack]),FILTER(ALL('Table'),'Table'[RouteNo]=MAX('Table'[RouteNo])&&HOUR('Table'[OrderRelelseTime])=MAX('X'[Hour])))
measure_Pick =
CALCULATE(SUM('Table'[QuantityAsDPack]),FILTER(ALL('Table'),'Table'[RouteNo]=MAX('Table'[RouteNo])&&HOUR('Table'[PickedTime])=MAX('X'[Hour])))

3. Select the Clusterd column chart, place [Hour] of the X table in Axis, and place [measure_order] and [measure_Pick] in Values.

vyangliumsft_1-1626331391694.png

4. Open Format – X axis – set Start=6, End=12.

vyangliumsft_2-1626331391696.png

5. Result:

vyangliumsft_3-1626331391698.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.