Тёмный
No video :(

PowerApps With Function 

Shane Young
Подписаться 164 тыс.
Просмотров 41 тыс.
50% 1

In this video, you will learn how to use the PowerApps With Function. This makes for cleaner formulas and better performance.
PowerApps Training www.PowerApps9...

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 104   
@emmanuelmaceda2475
@emmanuelmaceda2475 4 года назад
Yesterday, I made a comment in your other video about using a variable to sort columns in a gallery and getting a delegation warning. I used the WITH function you showed above and it now works!!! Thank you so much!!!
@ShanesCows
@ShanesCows 3 года назад
Fantastic!
@Bekesam
@Bekesam 2 года назад
It's been a struggle getting my mind wrapped around the With function, till I came across your video, thank you!!!
@zero2herobeatspaul882
@zero2herobeatspaul882 3 года назад
On a Shane Young marathon right now in January 2021, improving my PowerApps skills. Thank you for your teaching and your energy!
@ShanesCows
@ShanesCows 3 года назад
Wonderful! Thanks for watching and putting up with me. 🐶
@laelheasman3482
@laelheasman3482 3 года назад
Hi Shane. I have watched so many of your videos and learnt such an incredible amount from you. I watched this video last week, and have found opportunity to use "With" multiple times daily since. It is such an incredibly useful function, and is cleaning up my code all over the place. You are an amazing teacher, and I just wanted to give you huge thanks for all you do for us citizen developers. Keep up the sterling work!
@ShanesCows
@ShanesCows 3 года назад
Thanks for the kind words! Means a lot to me. 🐶
@andrewnunes8113
@andrewnunes8113 4 года назад
Wow, they're like Pivoting variables! Because the definitions pivot at the beginning of the code, and that bit never needs to change. This is even better than components.
@ShanesCows
@ShanesCows 4 года назад
With is awesome! I use it a lot for performance optimization.
@lescolle4268
@lescolle4268 4 года назад
Excellent training ... I'm an IT guy just starting inside PowerApps and your training is super .. plenty of reasosn ... for sure because super easy to understand even for the Frenchie I'm but also because show at the same time a simple but also rich example
@ShanesCows
@ShanesCows 4 года назад
Thanks. Enjoy learning 😎
@webwatcher188
@webwatcher188 2 года назад
Shane, thank you so much for this wonderful lecture on how to use With function. I am building a gallery which, on each line item, needs to join (LookUp on IDs) couple other SQL tables to get text names. Using With function hugely improved the gallery performance. Your examples are great and actually cover one of my cases. I really appreciate your teaching.
@ShanesCows
@ShanesCows 2 года назад
Thanks John :)
@terrisepulveda627
@terrisepulveda627 5 лет назад
Gradz on the growth of the number of viewers for your training! And as always, great content. I see myself referencing this many times!
@ShanesCows
@ShanesCows 5 лет назад
Glad you like it.
@berggrog1
@berggrog1 Год назад
You don't get enough feedback man. Thank you. Was trying to do some ForALL With & Patch Magic loading for example a collection or tasks, Then using forall patch to Assign Users to that task and then of course patching Checklist Items back to the first Task Item. Getting a delegation warning something like "A One to Many or Many to Many is being referenced in this functions record scope...." Crypes... well this started me on the right route. Thanks Shane. Hope all is going well
@ShanesCows
@ShanesCows Год назад
Appreciate that. 😎 Have a great weekend 😎
@AndreasMake
@AndreasMake 4 года назад
As usual. Grateful for you making my life easier. Potentially help keeping my variables down to a minimum outside of the with function. Thanks Shane!
@ShanesCows
@ShanesCows 4 года назад
Yeah this function is cool
@StephanOnisick
@StephanOnisick 5 месяцев назад
Great Examples!
@ShanesCows
@ShanesCows 5 месяцев назад
Thanks! 😃 I love With
@stephendarier1390
@stephendarier1390 3 года назад
Hi Shane it's so awesome I surch something I'm struggling with and your videos pop love it man keep them coming.
@ShanesCows
@ShanesCows 3 года назад
Thanks :)
@TioXpi
@TioXpi Год назад
Shane for President!
@ShanesCows
@ShanesCows Год назад
Love it! 👑
@pkp044
@pkp044 8 месяцев назад
Thank you so much Shane❤
@ShanesCows
@ShanesCows 8 месяцев назад
Happy to help :)
@hailm03
@hailm03 Год назад
Thank Shane! It's what i looking for
@ShanesCows
@ShanesCows Год назад
Awesome. This is one of my favorite functions!
@anats3008
@anats3008 5 месяцев назад
Thanks Shane! I've learned PowerApps using your videos. Very useful! I'm still struggling to find the match functions between flow and PowerApps. For some reason these functions have different names in flow and PowerApps. Example: In flow this formula works: concat('Q', add(div(sub(int(formatDateTime(utcNow(), 'MM')),1), 3), 1)) but in PowerApps it doesn't. Any trick how to find those names?
@ShanesCows
@ShanesCows 5 месяцев назад
Sadly they are 2 different languages. Power Apps - Power Automate Concatenate - Concat 1+1 - Add(1,1) 1-1 - Sub(1,1) 1/1 - Div(1,1) Value - Int Text(Now(), "MM") = formdatetime stuff Month(Now()) would also just return 3 directly. Those are off the top of my head but should be close.
@bradlystewart1156
@bradlystewart1156 4 года назад
Hey Shane, I know this video was along time ago but came i came in a little late lol. If you were to do a video on complex calculations I’ve been having a few issues. My company deals with steel pipe so the prices and weight calcs can get pretty crazy. I think the “with” function is the answer tho
@ShanesCows
@ShanesCows 4 года назад
Bradley leave a new comment with an example of a complex calc you are challenged by and I will see what I can do.
@canasman11
@canasman11 5 лет назад
This is awesome Shane. This is gonna be so useful when writting this kind of code now. Keep up the great work!!
@ShanesCows
@ShanesCows 5 лет назад
Thanks
@edakarajillo
@edakarajillo 2 года назад
Could I use this kind of functions in a model-data driven apps? Or even in power pages?
@ShanesCows
@ShanesCows 2 года назад
Not yet, their goal is to bring Power FX (the formula language where With lives) but they haven't yet.
@SegioVillalta
@SegioVillalta 5 лет назад
Great video as always. Thank you Shane 🤘
@ShanesCows
@ShanesCows 5 лет назад
Glad to help. 😀
@juanpablohernandezorozco7796
@juanpablohernandezorozco7796 2 года назад
Thank you very much shane you are the best, with this function it is possible to create a "FOR" loop and be able to use variables with the following syntax ForAll( Sequence(10), With( {Chewys: ThisRecord.Value}, Collect( Table_Dogs, { ID_Dog: Chewys, Name: "Chewy" } ) ) )
@vishaljhaveri7565
@vishaljhaveri7565 Год назад
For loop!
@luca-rw7ss
@luca-rw7ss 3 года назад
Very useful man! ;) thank you!
@ShanesCows
@ShanesCows 3 года назад
Glad to help. 😀 It is one of my favorite functions!
@jray1429
@jray1429 2 года назад
This is Awesome!! 😎
@ShanesCows
@ShanesCows 2 года назад
Thanks! 😁
@syedhussain6393
@syedhussain6393 3 года назад
when you used "With" function with "Lookup" function. Why did you not store lookup returned row in variable because in "With" function we save values in variables.
@ShanesCows
@ShanesCows 3 года назад
Just different way to do the same thing. If you need the value somewhere else then use a variable. IF you just need it for that one call then With is more effecient.
@AdamHaas
@AdamHaas 4 месяца назад
14:00 In the IF statement, do you need to reference the ID? Or can you just reference the record with IsBlank(record) ?
@ShanesCows
@ShanesCows 4 месяца назад
IsBlank(record) should work but I always like to be specific. In some serious you make record something like Defaults(Datasouce) which isn't actually blank but record.ID would be. So habit I always choose a primary field.
@philipmarno4989
@philipmarno4989 4 года назад
Great video, has really helped me rethink good code structure. I’ll be working “With” this for sure.
@ShanesCows
@ShanesCows 4 года назад
I love this function! ❤️
@jeanpierreragequit1726
@jeanpierreragequit1726 Год назад
Thx u so much Shane !
@vishaljhaveri7565
@vishaljhaveri7565 Год назад
Difference between using UpdateContext vs With function in Power Apps? (performance)
@ShanesCows
@ShanesCows Год назад
Performance is probably similiar with With being slightly less impactful. Why make a variable if you only need the info in one place. :)
@Magayshibeo
@Magayshibeo 3 года назад
Great!!!
@ShanesCows
@ShanesCows 3 года назад
Thanks
@altino91255268
@altino91255268 3 года назад
Hi Shane, great video! Could you talk more about the With function?
@ShanesCows
@ShanesCows 3 года назад
I love the With function. What else would you like to see covered with it? I open to ideas.
@altino91255268
@altino91255268 3 года назад
@@ShanesCows We could try to use this function together with an AddColumns column or even with a gallery
@K6TJO
@K6TJO 5 лет назад
Great tips Shane thanks!!
@ShanesCows
@ShanesCows 5 лет назад
You are welcome
@rajum5453
@rajum5453 4 года назад
can we use Isblank(record) insteadof Isblank(record.Id) in the if condition..pls clarify...
@ShanesCows
@ShanesCows 3 года назад
I don't see why not.
@bryancampbell8942
@bryancampbell8942 4 года назад
Came across something use WITH, it seems it cannot return a blank or "" value. Seems like a major limitation? I'm using With in the default property of a text box and it shows "false" when it should be empty, this creates a real problem.
@ShanesCows
@ShanesCows 4 года назад
Interesting can you email me how to recreate and I will look into it. Shane at PowerApps911.com
@priyanit
@priyanit 3 года назад
Hi Shane, Trying to insert data into existing row in SP list with the following onSelect Functions: UpdateIf( CyAt, Title = User().FullName && Text(varDT, ShortDate) = Text(DateOfEntry, ShortDate), { 'Work Location': Dropdown1.Selected, DST: Now(), Scoord: Label3.Text, status: "In" }); Please tell where and why does it fail to add any data.
@ShanesCows
@ShanesCows 3 года назад
That updates existing rows. You want to use Patch to add a new row. This should help ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-MclJ_O9HvJQ.html
@LPadillaCR
@LPadillaCR 5 лет назад
Dear Shane... Just another super hit video! Thanks! Quick question. How can I make a contacts app collect data offline for later update it once it gains connection again?
@ShanesCows
@ShanesCows 5 лет назад
I need to make a video on offline. 😑
@LPadillaCR
@LPadillaCR 5 лет назад
@@ShanesCows No one better than you to go for that task!!
@ryanbond8022
@ryanbond8022 4 года назад
@@ShanesCows Yes please!
@anantnd393
@anantnd393 4 года назад
Can you make a video to show us how to integrate Azure Functions with PowerApps? Including the part where we will need to make a swagger JSON
@ShanesCows
@ShanesCows 4 года назад
Maybe one day. We did cover that in my Advanced Power Apps class. training.powerapps911.com/courses/advanced-power-apps-and-power-automate Pretty deep stuff.
@csandford2
@csandford2 5 лет назад
Hi, Is there a way to update a data table depending on what is selected in multiple drop down menus? I have it so that all 3 have to be selected, where as i need it that 1, 2 or 3 could be selected. Great content BTW!
@ShanesCows
@ShanesCows 5 лет назад
Yes it is possible with lots of If but more that I can post here. Sorry
@muthuperumalkonar4874
@muthuperumalkonar4874 3 года назад
How to browse excel file and insert VBA module and run it in powerapps?
@dfheiland
@dfheiland 5 лет назад
A little off topic, but would it be possible to use PowerApps as a digital signage. Let an app run 24/7 and push some info out to a screen?
@ShanesCows
@ShanesCows 5 лет назад
Probably not. You will have to log on periodically but to be fair I have not tried.
@accmahmoud84
@accmahmoud84 2 года назад
In the gallery I have: A field for a vessel name A field for the cost I want to lookup the cost from a data source based on the vessel name Lookup(name of the table where the cost is stored, name of vessel name in the data source=name of the gallery.Selected.name of the field of the vessel name). Name of the column of the cost When I apply the above I get blank
@iamnotcool42
@iamnotcool42 5 лет назад
Thanks man. your videos are really helpful
@ShanesCows
@ShanesCows 5 лет назад
Glad to help. 😀
@karlnixon5606
@karlnixon5606 4 года назад
Thanks Shane, are you able to use the with() variable in formatting the Fill property of the same item? ie in your example if the Dog is Chewie set the fill property to Red ?
@ShanesCows
@ShanesCows 4 года назад
Yes, as long as you return a color Power Apps doesn’t care how you get it
@javierzorromorales4333
@javierzorromorales4333 5 лет назад
Thank you Shane, In the future are you going to work with a model?
@ShanesCows
@ShanesCows 5 лет назад
Yes. Soon I hope. Soon.
@kiranboligarla5057
@kiranboligarla5057 5 лет назад
Shane, Did you do a video to built milestone charts in powerapps.
@ShanesCows
@ShanesCows 4 года назад
I didn’t. Sorry.
@kiranboligarla5057
@kiranboligarla5057 4 года назад
Thanks Shane. I tried to build it in power BI and able to integrate in power apps screen.
@Radioguy00
@Radioguy00 5 лет назад
Very good!
@ShanesCows
@ShanesCows 5 лет назад
Glad to help. 😀
@bootsbax
@bootsbax 5 лет назад
thanks Shane
@ShanesCows
@ShanesCows 5 лет назад
Happy to help
@petrinnn
@petrinnn 4 года назад
Shane, Is it possible to use this With Function in another button? For example, i have this code.. that i have to use in a lot buttons.. ForAll(Filter(arrusuarios;varNovo="NOVO");Patch('ATAS - Possíveis Usuários';Defaults('ATAS - Possíveis Usuários'); {Nome:Nome;Empresa:Empresa;Telefone:Telefone;Email:Email; EditarUsuario:EditarUsuario; varNovo:"FOI"}));; I dont want to write the same code in ALL buttons.. i would like to call this function like... all my code are a function called SEND_OFFLINE... and just to use SEND_OFFLINE in my buttons?
@ShanesCows
@ShanesCows 4 года назад
Nope. 😑 You will have to copy the code around. Sorry.
@petrinnn
@petrinnn 4 года назад
@@ShanesCows Thank you!!
@ayoubtourabi6836
@ayoubtourabi6836 5 лет назад
👏🏻👏🏻👏🏻👏🏻👏🏻
@ShanesCows
@ShanesCows 5 лет назад
😎
@kal9001
@kal9001 4 года назад
Trying to be respectful here, but isn't powerapps generally a bit stupid?!... It seems like a lot of things could be done so much easier by getting rid of the WYSIWYG and get a scripting editor up where you can make proper variables and change stuff how you like...
Далее
PowerApps Forms - Form Mode
21:23
Просмотров 245 тыс.
La Tierra Robó El Anillo De Saturno #planetballs
00:14
A better PowerApps Data Model - Flexible and fast
26:52
PowerApps Filter Gallery by the Current User
22:16
Просмотров 117 тыс.
PowerApps Forms - LastSubmit, Updates, UnSaved
16:26
Просмотров 103 тыс.
PowerApps Conditional Formatting and Popups
25:42
Просмотров 135 тыс.
Power Apps - Canvas Apps Interview Question
19:16
Просмотров 1 тыс.