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.
How do i include a calculated column/ calculated field in the data model such that it calculates the number of times (for example in Op No. column ,the value '9999' and in Equipment column, the value '215320307' appears, for this case which should show as '3'). Show in the picture below.
And from there I want to get the highest time value between CN47N Actual Time column and IW49 Actual Time column and sum them up for rows that '9999' in Op No column and '215320307' in Equipment column appear and divide by the count '3' that was calculated from the calculated column/ calculated field earlier.
Solved! Go to Solution.
Hi @ephramz ,
Try dax like this :
Count =
CALCULATE (
COUNT ( 'ENGG VM_TRM'[OP.No.] ),
FILTER (
'ENGG VM_TRM',
'ENGG VM_TRM'[Equipment] = EARLIER ( 'ENGG VM_TRM'[Equipment] )
&& 'ENGG VM_TRM'[OP.No.] = EARLIER ( 'ENGG VM_TRM'[OP.No.] )
)
)
See the below ,a sample:
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
Hi @ephramz ,
Try dax like this :
Count =
CALCULATE (
COUNT ( 'ENGG VM_TRM'[OP.No.] ),
FILTER (
'ENGG VM_TRM',
'ENGG VM_TRM'[Equipment] = EARLIER ( 'ENGG VM_TRM'[Equipment] )
&& 'ENGG VM_TRM'[OP.No.] = EARLIER ( 'ENGG VM_TRM'[OP.No.] )
)
)
See the below ,a sample:
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
100 | |
66 | |
49 | |
39 | |
32 |
User | Count |
---|---|
166 | |
117 | |
61 | |
58 | |
42 |