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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

How to Calculate Total Minutes/Hours per quarter

Q1

Apr-Jun

       

Q2

Jul-Sep

       

Q3

Oct-Dec

       

Q4

Jan-Mar

       

Client

Start

End

Minutes a week

Q1

Q2

Q3

  

1

01/09/2022

 

45

 

yes

yes

  

2

01/09/2022

 

30

 

yes

yes

  

3

15/07/2021

 

270

 

yes

yes

  

4

15/07/2021

 

270

 

yes

yes

  

5

01/04/2022

 

45

yes

yes

yes

  

6

01/04/2022

 

60

yes

yes

yes

  

7

01/04/2022

 

30

yes

yes

yes

  

8

01/04/2022

04/08/2022

30

yes

yes

No

Calculation upto 04/08/2022

9

01/04/2022

04/08/2022

30

yes

yes

No

Calculation upto 04/08/2022

         

I want to be able to calculate the total number of minutes/hours per Quarter per client

 

Thank you for your help!

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Anonymous Would probably be easiest if you unpivoted your quarter columns in your 2nd table. Then you could form a relationship between your 2 tables based on quarter and a simple SUM would suffice. 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Super User
Super User

@Anonymous Would probably be easiest if you unpivoted your quarter columns in your 2nd table. Then you could form a relationship between your 2 tables based on quarter and a simple SUM would suffice. 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.