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.
I haveI have 4 columns of dates inside the table (OT) and i want to create a measure that counts the conditions "L" AND "E"
for example: IF DATE 2 <DATE 3 is late "L" and if DATE 1> DATE 4 is early "E" . END DATE. It could be 2 measures one for condition L and the other for E
D1 | D2 | D3 | D4 |
31/08/2020 7:30 | 31/08/2020 9:30 | 31/08/2020 8:07 | 31/08/2020 8:08 |
31/08/2020 8:00 | 31/08/2020 10:00 | 31/08/2020 8:17 | 31/08/2020 8:21 |
31/08/2020 8:30 | 31/08/2020 8:30 | 31/08/2020 8:26 | 31/08/2020 8:47 |
31/08/2020 8:30 | 31/08/2020 10:30 | 31/08/2020 8:57 | 31/08/2020 9:02 |
thanks for the help!
@Anonymous , if you need column
switch()( True(),
[D2 < [D3], "L"
[D1]> [D4], "E")
measure
late = calculate(countrows(Table), filter(Table,[D2 < [D3]))
early = calculate(countrows(Table), filter(Table,[D1]> [D4]))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |