Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have two tables that I need to find Turn around Time of the Approvers to approve projects the tables are as follows.
Projects Table
projectID | ProjectName | Approval Initiator | Created |
1 | Project1 | Initiator1 | 27/12/2021 04:56:23 |
2 | Project2 | Initiator2 | 27/12/2021 08:00:33 |
3 | Project3 | Initiator3 | 28/12/2021 04:32:56 |
4 | Project4 | Initiator4 | 29/12/2021 11:11:28 |
Approvals Tables
projectID | ProjectName | Approver | Approval TIme | Outcome |
1 | Project1 | Approver1 | 01/01/2022 03:37:00 | Returned |
1 | Project1 | Approver1 | 01/01/2022 04:22:45 | Returned |
1 | Project1 | Approver1 | 01/01/2022 06:47:22 | Delegation |
1 | Project1 | Approver1 | 01/01/2022 :22:45 | Returned |
2 | Project2 | Approver1 | 02/01/2022 :00:36 | Returned |
2 | Project2 | Approver1 | 03/01/2022 :05:30 | Delegation |
3 | Project3 | Approver2 | 04/01/2022 :01:34 | Approver |
Solved! Go to Solution.
@ryan_mayu , the data is from an a Power app application and a single project can have mutiple approvers, the approvers table displays that..
is this what you want?
Proud to be a Super User!
what's the expected output based on the sample data?
how to get the approval time? e.g. we have 4 approval time of project 1 .
Proud to be a Super User!
@ryan_mayu , the data is from an a Power app application and a single project can have mutiple approvers, the approvers table displays that..
is this what you want?
Proud to be a Super User!
Hey, this only solves the first part of the equation for the first approver, for subsequent approvers, one needs to subtract the CUrrent Approver time to the Immediate former Approver time, and divide by 24..
An if statement for the above would work
Formulae =IF First Approver
(Approvals[Approval TIme]-RELATED(Projects[Created]))/24
ELse
(Aprovals[Approval TIme] Below line for the same project - Aprovals[Approval TIME]Same Line for the same project)/24
pls try this
Column =
var _FIRST=CALCULATE(min('Approvals'[Approval TIme]),ALLEXCEPT(Approvals,Approvals[projectID]))
VAR _next=minx(FILTER(Approvals,Approvals[projectID]=EARLIER(Approvals[projectID])&&Approvals[Approval TIme]>EARLIER(Approvals[Approval TIme])),Approvals[Approval TIme])
return if(Approvals[Approval TIme]=_FIRST, (Approvals[Approval TIme]-RELATED(Projects[Created]))/24, (_next-Approvals[Approval TIme])/24)
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
85 | |
66 | |
52 | |
47 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |