Power Automate: Group By, SUM, COUNT in 6 steps! No Apply To Each | Runs super fast

  Рет қаралды 5,152

Untethered 365

Untethered 365

Күн бұрын

Пікірлер: 23
@francomussocom
@francomussocom 9 ай бұрын
Awesome job presenting this. Complex, powerful approach made totally approachable. Super well explained 👌
@Stevencyw88
@Stevencyw88 20 күн бұрын
awesome. this is what i have been looking for, avoiding apply to each.
@Untethered365
@Untethered365 20 күн бұрын
@@Stevencyw88 we got some great vids coming out on logic apps too so stay tuned!
@nemanjap7244
@nemanjap7244 3 ай бұрын
Great explanations along the way! Thank you!
@opl1989
@opl1989 7 ай бұрын
Fantastic video helped me solve how to find the text values by using the normalize function count(/root/values[normalize-space(Venue)='KDY']) This worked on xpather but within Power automate I had to use double quotation marks. count(/root/values[normalize-space(Venue)="KDY"]) then dynamically xpath(outputs('Compose_XML'), concat('count(/root/values[normalize-space(Venue)="',item(),'"])')) Thanks so much
@SeanAstro
@SeanAstro 7 ай бұрын
Well done figuring out those double quotes! Glad it could help 🎉
@Tamara-kn7fw
@Tamara-kn7fw 7 ай бұрын
@opl1989. Thank you so much. your comment saved me!
@SivaKumar-sx8vb
@SivaKumar-sx8vb 5 ай бұрын
Hi, am trying to calculate the sum of hours worked for each employee using their user id and below is the code am using sum(/root/array[userid="B0120125"]/hoursworked) but its not working, can you please help
@FlyHighVisuals
@FlyHighVisuals 16 сағат бұрын
Great video, I’m going to try it out later. Could you please send the link to the Group By with 1 ‘Apply to Each’ please?
@Untethered365
@Untethered365 14 сағат бұрын
@@FlyHighVisuals that video is removed :(
@IvanGC1
@IvanGC1 Ай бұрын
Im not managing to count the items by using a string instaed of a number. I get that the xpath expression is invalid for the following query. xpath(outputs('Create_XML'), concat('count(/root/array[normalize-space(Name)="',item(),'"])')) Any help would be appreciated
@ManamohanNayak-n6g
@ManamohanNayak-n6g 8 ай бұрын
Nice Article, though it is little tuff but it overcomes the tideous process. Thanks for the post.
@Untethered365
@Untethered365 8 ай бұрын
Thanks! The balance between simple yet performant is always tricky.
@abbeyesval
@abbeyesval 8 ай бұрын
thanks for this great video, I just have one question, how can I add numeric formatting in xpath function to summarize the costs? I tried with formatNumber(Item()?['AmountLocalCurrency'],'N2'), however the total result that I receive is NAN, so my question now is, how can I add that format as part of the xpath expression?
@Untethered365
@Untethered365 8 ай бұрын
Hello! My apologies on delay. Are you still having an issue with this?
@abbeyesval
@abbeyesval 8 ай бұрын
@@Untethered365 hi, unfortunately I'm still having this issue, I just want to add format on the table with the resuls after use xpath expression, also can you tell me if is possible to add a filter also in that expressión? I will really appreciate your help 😁
@Untethered365
@Untethered365 8 ай бұрын
@@abbeyesval without seeing your code do you first need to convert the item value to a decimal or integer first? e.g. decimal(item?['AmountLocalCurrency'] and do this inside the formatNumber expression
@jasonjacome5963
@jasonjacome5963 3 ай бұрын
So this is how an architech works!!!!
@Untethered365
@Untethered365 3 ай бұрын
@@jasonjacome5963 precisely! Code 6 steps then go home :)
@maiquac-rb5nf
@maiquac-rb5nf 6 ай бұрын
thank for sharing, it help me a lot
@ericgeeeee
@ericgeeeee 6 ай бұрын
Thank you for this! Question - is it possible to use this approach to group data? I am being careful with loops that's why I got interested in this approach. I tried and it returned something like this: { "body": [ { "group": "A", "data": [ { "$content-type": "application/xml;charset=utf-8", "$content": "PGFycmF5Pg0KICA8cmVzb3VyY2VfaWQ+MTwvcmVzb3VyY2VfaWQ+DQogIDx0aW1lc2hlZXRfaWQ+QTwvdGltZXNoZWV0X2lkPg0KICA8dGltZXNoZWV0X2RldGFpbF9pZD5YTDc2SzM8L3RpbWVzaGVldF9kZXRhaWxfaWQ+DQogIDxob3Vyc190eXBlPnJlZ3VsYXI8L2hvdXJzX3R5cGU+DQogIDxob3Vycz4zLjc1PC9ob3Vycz4NCjwvYXJyYXk+" }, { "$content-type": "application/xml;charset=utf-8", "$content": "PGFycmF5Pg0KICA8cmVzb3VyY2VfaWQ+MTwvcmVzb3VyY2VfaWQ+DQogIDx0aW1lc2hlZXRfaWQ+QTwvdGltZXNoZWV0X2lkPg0KICA8dGltZXNoZWV0X2RldGFpbF9pZD5LVzkySjg8L3RpbWVzaGVldF9kZXRhaWxfaWQ+DQogIDxob3Vyc190eXBlPm92ZXJ0aW1lPC9ob3Vyc190eXBlPg0KICA8aG91cnM+NTwvaG91cnM+DQo8L2FycmF5Pg==" } ] }, Each object in the "data" array is an array My goal is get something like this in json: | group | data | ------------------------- | A | [ table] | | B | [ table] | | C | [ table] |
@SeanAstro
@SeanAstro 6 ай бұрын
Yes but it may be easier to just use the SELECT and make brand new objects cherry picking just the items you want. In this case the Group letter and the content inside.
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 26 МЛН
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,9 МЛН
Don't Use Confluence for Technical Documentation
9:05
OutOfDevOps
Рет қаралды 4 М.
I built 10 web apps... with 10 different languages
14:23
Fireship
Рет қаралды 1,6 МЛН
Proxy vs Reverse Proxy vs Load Balancer | Simply Explained
13:19
TechWorld with Nana
Рет қаралды 181 М.
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 26 МЛН