Branch/Department | Document Type | Date added |
Branch 1 | Document A | 11/02/2025 |
Branch 1 | Document B | 03/02/2025 |
Branch 2 | Document A | 30/01/2025 |
Branch 3 | Document A | 31/01/2025 |
Branch 3 | Document B | 04/02/2025 |
Branch 4 | Document A | 06/02/2025 |
Branch 5 | Document B | 11/02/2025 |
Branch 6 | Document B | 01/02/2025 |
Branch 7 | Document C | 30/01/2025 |
Branch/Department | Document Type A | Document Type B | Document Type C |
Branch 1 | 1 | 1 | 0 |
Branch 2 | 1 | 0 | 0 |
Branch 3 | 1 | 0 | 0 |
Branch 4 | 1 | 0 | 0 |
Branch 5 | 0 | 1 | 0 |
Branch 6 | 0 | 1 | 0 |
Branch 7 | 0 | 0 | 1 |
union(
xpath(
xml(json(concat('{"Root":{"Item":', outputs('Compose'), '}}'))),
'//Item/Branch/text()'
),
json('[]')
)
item()
length(
xpath(
xml(json(concat('{"Root":{"Item":', outputs('Compose'), '}}'))),
concat('//Item[Branch="', item(), '" and Doc="Document A"]')
)
)
length(
xpath(
xml(json(concat('{"Root":{"Item":', outputs('Compose'), '}}'))),
concat('//Item[Branch="', item(), '" and Doc="Document B"]')
)
)
length(
xpath(
xml(json(concat('{"Root":{"Item":', outputs('Compose'), '}}'))),
concat('//Item[Branch="', item(), '" and Doc="Document C"]')
)
)
stampcoin
87
Michael E. Gernaey
70
Super User 2025 Season 1
David_MA
48
Super User 2025 Season 1