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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
gersonplovas
Frequent Visitor

Sum hours by shift in a mounth

Hello evebody!

I need some help here.

That is the question:

 

There is a company that works in 3 shifts per day and some equipments works 2 **bleep**fs and others equipments works 3 shifts.

 

The equipaments A works 2 shifts and the equipaments B works 3 shifts.

 

I have a table dCalendar with the shifts and a table with the equipaments works description.

 

I need to sum the total hours worked per each equipments in a mounth.

 

Thanks for now.

7 REPLIES 7
amitchandak
Super User
Super User

@gersonplovas ,Can you share sample data and sample output.

dCalendar with time shiftdCalendar with time shiftTable  equipament shiftTable equipament shiftI tried to do it but doesn't workedI tried to do it but doesn't workedSure,

Hi @gersonplovas ,

 

I cannot access your file by your link, Could you please share it again? 

 

Btw, please try to use this formula.

 

total =
CALCULATE (
    SUM ( dCalendar[T1] ),
    FILTER ( equipament, equipament[turnos] = "1" )
)
    + CALCULATE (
        SUM ( dCalendar[T3] ),
        FILTER ( equipament, equipament[turnos] = "3" )
    )

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @v-frfei-msft  ,

 

Thanks for reply,

 

I did as you said but it didn't work, because the sum of the hours by equipaments is the same for all of them I don't have the sum of the shift hours slice by equipaments.

 

Please check it below.

 

Is there another way to share it to you?

 

Have a good one.

 

 

 

 

PrtScr capture.jpg

 

table d Calendar with hours shifttable d Calendar with hours shift

 

table equipment work shifttable equipment work shift

 

 

@gersonplovas ,

Sorry not able to get you, data model. Please provide data in a tabular format with the expected output.

First of all thanks for helping me.

 

Sorry for it I am new here

Can you able to open the link below?

 

https://app.powerbi.com/groups/me/reports/67c540b9-c4dc-42ce-bc50-ffaf9120e14b?ctid=52130f36-b8f4-4f... 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.