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.
Workleave.id | Previouschainedworkleave.id | path | Duration | Total duration |
111 | 111 | 1 | 1 | |
222 | 111 | 111 | 222 | 1 | 2 |
333 | 222 | 111|222|333 | 1 | 3 |
444 | 444 | 1 | 1 | |
555 | 555 | 1 | 1 |
but the correct end result would be
Workleave.id | Previouschainedworkleave.id | path | Duration | Total duration |
111 | 111 | 1 | 3 | |
222 | 111 | 111 | 222 | 1 | 0 |
333 | 222 | 111|222|333 | 1 | 0 |
444 | 444 | 1 | 1 | |
555 | 555 | 1 | 1 |
Solved! Go to Solution.
Hi @henkka,
I'd propose to solve you problem with a calculation column like this:
And in the text format for convenience:
Total duration =
VAR CurrentWorkLeaveID = [Workleave.id]
RETURN SUMX (
FILTER (
ADDCOLUMNS ( ALL ( FactWorkleaves ),
"Flag",
FIND ( CurrentWorkLeaveID, [path], 1, BLANK () ) = 1 ),
[Flag] = TRUE () ),
[Duration] ) + 0
Best Regards,
Alexander
Hi @henkka,
I'd propose to solve you problem with a calculation column like this:
And in the text format for convenience:
Total duration =
VAR CurrentWorkLeaveID = [Workleave.id]
RETURN SUMX (
FILTER (
ADDCOLUMNS ( ALL ( FactWorkleaves ),
"Flag",
FIND ( CurrentWorkLeaveID, [path], 1, BLANK () ) = 1 ),
[Flag] = TRUE () ),
[Duration] ) + 0
Best Regards,
Alexander
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 |
---|---|
145 | |
87 | |
66 | |
52 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |