Тёмный
No video :(

Power Apps CountRows, CountIf, CountA, and Count vs Delegation 

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

You need to Count all of the things is PowerApps. So learn about Power Apps CountRows, CountIf, CountA, and Count and how delegation plays in. Also, learn a workaround using Filter and about a coming soon feature of Dataverse.
Power Apps Consulting and training at www.PowerApps9...

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

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 82   
@morris5984
@morris5984 3 года назад
Got your explanation the first time. Coming from someone with a learning disability, you explained it very well (though watching your delegation video helped with providing context)! I also enjoy the shorter format. I would love to see more dataverse videos. You did a great video on relationships using dataverse tables but I would love to learn how to relate tables that are “grandchildren”. Example: if you have a product table related to a parts table and then the parts table is related to a supplier table and the supplier table is related to a supplier contact table which that table has an attribute called primary contact. So then I to filter a product and show a portal with all the suppliers for the given product with the primary contact name for that supplier.
@ShanesCows
@ShanesCows 3 года назад
Thanks for the feedback Bryan. And you video idea is noted. 😀
@AdiCristea
@AdiCristea 3 года назад
Unfortunately, Power Apps will not let you directly go above or below two layers, so you'll need to work in small increments, get the first layer data, then use that to get the next one, and so on. Table.LookupColumn1.LookupColumn2 is not permitted yet (or it wasn't couple of months ago, maybe it's been fixed, good idea, let me try it, Bryan).
@ShanesCows
@ShanesCows 3 года назад
Agreed. Last time I tried that it didn't work for me either. So I had to do exactly what Adi says.
@solarpunk_
@solarpunk_ 3 года назад
Can you work directly with the data to flatten out your table a little bit with an intermedeitry table? For instance are some of thouse relationships 1:1 relations thather than 1:Many? An intermedieratry table could store some of that information in additional columns instrad of having to lookup into grandchild tables...
@morris5984
@morris5984 3 года назад
@@ShanesCows what kind of function would you use to grab that data? I’m thinking something like a nested lookup but have never attempted that before so not exactly sure. I currently use SharePoint lists but I really want to get more into Dataverse.
@jiromaiya
@jiromaiya 3 года назад
Essentially, we need to filter down to the set delegable limit for our apps. Thanks Shane.
@ShanesCows
@ShanesCows 3 года назад
You got it! 👍
@MrHHBlackhawk
@MrHHBlackhawk 3 месяца назад
That was more information than any other source.Thx.!
@ShanesCows
@ShanesCows 3 месяца назад
Glad it was helpful!
@AdiCristea
@AdiCristea 3 года назад
CountRows('PowerApps issues', 'Solved by Shane with a video of his' = true)... Not delegable, and the number is too large. Cheers for the video. PS. I'm surprised you haven't mentioned our favourite function (or one of our favourites): With. What I usually do is grab the records into a variable with Filter, thus delegable, then use CountRows on the temp variable, thus delegable, problem solved, as a Power Apps guru would say, easy peasy lemon squeezy.
@ShanesCows
@ShanesCows 3 года назад
You are awesome Adi! Thanks for keeping me on my toes. 😍
@moisestatis5418
@moisestatis5418 Год назад
Great video, thanks! The bonus at the end was awesome. A simple solution in front of my nose that I didn’t see it.
@ShanesCows
@ShanesCows Год назад
You're welcome!
@notonurnelly
@notonurnelly 3 года назад
Great video Shane and thanks for the heads up on the new Dataverse setting that will certainly come in handy as I'm trying to do a lot more with Dataverse.
@HeyTezza
@HeyTezza 3 месяца назад
Needed this exactly, thank you so much!
@ShanesCows
@ShanesCows 3 месяца назад
Glad it was helpful!
@TheKalipolis
@TheKalipolis 3 года назад
Hi Shane! I loved this video. I use countif for counting confirmed appointments by person. Your option is way better. Thanks. Could you consider to make a video on how to populate Word / Excel template without premium license?
@fadiahdab
@fadiahdab 3 года назад
Thank you Shane , amazing as always
@ShanesCows
@ShanesCows 3 года назад
Thanks 😊
@kimgaskins5537
@kimgaskins5537 2 года назад
Great video Shane; I was able to resolve my issue BUT I'm having to do a filter for everything I want to count in the gallery. Sooo, if I want to count the number of students that completed a class, and the number of students that canceled a class how can I do that based on what's already filtered in the gallery control and avoid doing a FILTER for each?
@MrUggeh
@MrUggeh 3 года назад
I always ended up making a flow in power automate to grab large data from SQL/Sharepoint and pass to powerapps in a collection to get around delegation limits, since its not always possible to ensure that your Filter query will return less than 2000 rows, especially on large datasets.
@marounsader318
@marounsader318 3 года назад
hi, how do you use PA to add data to collection?
@franknielsen3219
@franknielsen3219 3 года назад
Another great video from your studio Shane. THX
@ShanesCows
@ShanesCows 3 года назад
My pleasure!
@fredbarnes196
@fredbarnes196 Год назад
Gallery.AllItems represents only the first 100 records in the gallery until you start scrolling down the gallery, so counting AllItems will confuse users. Relying on there never being more than the delegable number of records in the filtered datasource seems like a bad idea. And countRows still throws delegation errors even though "Enhanced delegation" feature is checked in the settings. I am still afraid to count rows **Edit** CountRows was throwing the delegation error when I was using a view for the gallery. It seems to work on large sets if you use the whole table.
@Saadssk94
@Saadssk94 3 года назад
Thanks buddy. your videos are funny and informational at the same time.
@ShanesCows
@ShanesCows 3 года назад
Glad you like them!
@brandondent2996
@brandondent2996 Месяц назад
Great video! After I apply my needed filter, the row count exceeds the delegation limit of 2,000. It is around 4,500 rows. Is there a way I could get the true count (4,500) in power apps? Note: I am using SQL server as my data source.
@ShanesCows
@ShanesCows Месяц назад
No 😢 Maybe write a stored procedure or view that you can call that has your count for you?
@thomasschaub9474
@thomasschaub9474 3 года назад
Super helpful Shane!! Thank you!
@ShanesCows
@ShanesCows 3 года назад
Happy to help!
@iyengar007
@iyengar007 3 года назад
Awesome tip. Will buy you coffee when you are in India/Bangalore. I'm also hoping to steal apps you may have developed for learning purpose.
@thtoon8234
@thtoon8234 15 дней назад
Hi, Wonder if you can help with a different delegation issue I am having with the Value() function as below: Sort(tableName, Value(fieldName), SortOrder.Descending) This is using a Dataverse table and an AutoNumber field name, from which the Value(fieldName) is returning a delegation warning. Is there an alternative to using Value() that is not delegable? thanks Tony PS - I incorrectly assumed the AutoNumber was a numeric data type (but is actually alphanumeric). As such I am trying to use the Value() to sort this correctly within a gallery.
@ShanesCows
@ShanesCows 15 дней назад
Unfortunately there is no easy answer. 😐 What you might try, I haven't tried, is go back to your table and make a formula column in DV that does the Value(autonumbercolumn). If it lets you, can you sort on that column? I don't know the answer but that is what I would try.
@thtoon8234
@thtoon8234 15 дней назад
@@ShanesCows Thanks for the quick reply Shane, I will give it a try 👍
@thtoon8234
@thtoon8234 14 дней назад
@@ShanesCows Hi Shane, I tried your suggestion and it worked a treat 😀 I guess using the Value() function within a Dataverse formula is not delegable, its only delegable when its used in a Canvas App. As such its a great solution to get around the problem of AutoNumber fields. Thanks again 👍
@richardn88
@richardn88 3 года назад
Thanks Shane, I think I have now watched everyone of your PowerApps Videos, some more than once. They have been a great help getting started with my Apps. A couple of Ideas for new videos. 1, The New PowerApps push notification V2 (what is dynamic parameter?) can it be used to trigger an action within the app? 2, The new Map connector, is there a way of drawing on the map by circling pins and adding them into a collection? I was thinking it might be possible using maps drawing JSON outputs (Latitude and Longitudes), then collecting the pins within that area.
@TyRey
@TyRey 3 года назад
Another great video Shane.
@ShanesCows
@ShanesCows 3 года назад
Thanks ☺️
@jeffeNuts
@jeffeNuts Год назад
Super helpful, thanks!
@ShanesCows
@ShanesCows Год назад
Thanks ☺️
@edersonti
@edersonti 3 года назад
Shane, Something interesting happened. When importing a view into a collection, columns created "virtually" are not imported: Example: Table: vw_Quant_students(quant numeric); Creating the view: CREATE OR REPLACE VIEW VW_Amount_alunos AS (select 'ALU' ALU_TYPE, COUNT(*) QTDE from vw_Quant_students) The view will have 2 columns: ALU_TYPE, QTDE. When importing into a collection, the collection only shows QTDE. Is this a limitation from powerapps or me? lol
@prathameshjoshi9199
@prathameshjoshi9199 2 года назад
Thank you Shane 😊
@ShanesCows
@ShanesCows 2 года назад
Happy to help. Have a great day. 🐶
@Juventino222
@Juventino222 3 года назад
Hi Shane, On the beginning I would like to thank you for your last tip :) You saved my day. I'm not sure if you have seen my post on previous video. I have another problem and I believe you can help. I have created Sharepoint form in Power Apps. I have question in the form and possible answers are 1,0,N/A. Is it possible to display only "Yes", "No", "N/A" instead of 1,0,N/A. So for example when I select "Yes" and submit form I can see on sharepoint list 1. I'm trying to migrate form from infopath when it was set up somehow. Thank you. Regards, Pawel
@MichaelDeBlasis1369
@MichaelDeBlasis1369 4 месяца назад
I'm using a sharepoint list that has about 10 rows of data and when I use the count function to display a dashboard of how many records there are it returns 0. :(
@carlosgomezalvarez1476
@carlosgomezalvarez1476 3 года назад
Hi Shawn, great video as always :D, can you please made a video about click counting? So that we can now how many clicks the user did in a session and how to save that in sharepoint
@louiscutmore
@louiscutmore 3 года назад
Awesome, as always 😊
@ShanesCows
@ShanesCows 3 года назад
Thanks 🙏
@edersonti
@edersonti 3 года назад
Hi Master Shane, I believe that creating views in the database to perform counting operations would be more performative. Am I right ? I created a collection and populated it's content with data from a database view. I couldn't add new columns in the same command as the collection creation. AddColumns(ClearCollect(ColCopia;'VIEW_BASE_DATA');"Type";"Y") I needed to create the first collection with the view data, and the second collection adding the fields. Did I do something wrong ? tks
@ShanesCows
@ShanesCows 3 года назад
Views would be faster. You have a typo in your code: ClearCollect(ColCopia; AddColumns('VIEW_BASE_DATA';"Type";"Y")) that should be it or close anyway.
@edersonti
@edersonti 3 года назад
@@ShanesCows It worked. Thanks !
@CarlosSolisNow
@CarlosSolisNow 2 года назад
Super Useful Shane
@ShanesCows
@ShanesCows 2 года назад
Glad you liked it
@Alan-wt1vo
@Alan-wt1vo 3 года назад
Can the app delegation limit be called into a variable. Perhaps to use as a check with count rows to see if the is a delegation risk on the filtered data?
@ShanesCows
@ShanesCows 3 года назад
Not that I know of.
@sureshpune6076
@sureshpune6076 Год назад
Hi Shane , Thanks for the video. I have 4 dropdowns with S & U as common options of all dropdowns. I need the count of Selection of S. That count, I need to place in another text input column. How can we achieve this. Any help is appreciated. Thanks in advance
@MrHHBlackhawk
@MrHHBlackhawk 3 месяца назад
Danke!
@ShanesCows
@ShanesCows 3 месяца назад
Thank you for your support! 😎
@davidakridge2831
@davidakridge2831 3 года назад
But the gallery only shows the first 100 records unless you scroll. It is amazing to me that I can write and app that links to a SharePoint list of 2000+ records and nowhere in the app can I get an effective count of the number of records to display. Such a simple request that is way too complicated.
@ShanesCows
@ShanesCows 3 года назад
Countrows not delegable is annoying
@MrDionmar
@MrDionmar 3 года назад
Excelent! tks very much!
@ShanesCows
@ShanesCows 3 года назад
You are welcome 🤗
@NOR3MSTI
@NOR3MSTI 2 года назад
What about countif using flow to count dropdown / or radio selections
@ShanesCows
@ShanesCows 2 года назад
Sorry, I am not sure what you mean.
@marckmagallon6318
@marckmagallon6318 Год назад
hi Shane, i realy like this video, just that it does not work for mi, i put this formula: Count('vacation pool'.NAME) and it says that there's something wrong, even the name of the Colum is correct, i also add a table and put Count(NAME_Column1), and it doesn't work heather, do you know what could happened, if you help me ill follow and like, thanks for your time... ps it works with countrows
@gnanavelv3715
@gnanavelv3715 2 года назад
how to use a COUNTIF for checking Choice column Text...
@ShanesCows
@ShanesCows 2 года назад
Not sure. Haven’t tried
@omiboy4u
@omiboy4u Год назад
I'm so tired of searching, Sort CountRows in the Gallery, please please please if you are reading and you know how to do it please reply,.
@ShanesCows
@ShanesCows Год назад
What is the formula you have tried? I don’t follow what you want to do. CountRows produces a number, not a table, so nothing to display in a galley or sort.
@omiboy4u
@omiboy4u Год назад
@@ShanesCows I've posted I comm and Dm you sir 👍
@lwhite3225
@lwhite3225 3 года назад
Hi Shane! Your timing is impeccable. I just hit the delegation wall of 2000 records using CountRows and CountIf in a PowerApp. I'm trying to use the Count/Filter process, but I'm having trouble. The PowerApp code I'm using is "CountRows(Filter(PARS, Status = "New")). PARS is the SP list name, Status is the column name, and New is the value I need to count. PowerApps doesn't like it. Can this be made to work with text fields? BTW, Status is a choice field in the SP list. Thanks! Lisa White
@Power-Platform
@Power-Platform 3 года назад
Hey I tested your scenario, it seems you need to put "Status.Value" in your formula. Try the code below and you will get the delegation warning but the filter portion will be delegable as Shane mentioned in the vid. "CountRows(Filter(PARS, Status.Value = "New"))"
@lwhite3225
@lwhite3225 3 года назад
@@Power-Platform Thanks, Barry, that worked!
@jasonmelchert155
@jasonmelchert155 3 года назад
@@lwhite3225 it was helpful that you mentioned it was a choice column. That’s why you need the .value.
@casadelujocali
@casadelujocali 11 месяцев назад
gRACIAS
@ShanesCows
@ShanesCows 11 месяцев назад
Happy to help. Have a great day. 🐶
@augustofilho4220
@augustofilho4220 2 года назад
...... Muito bom.
@MichaelDeBlasis1369
@MichaelDeBlasis1369 4 месяца назад
No Countif or Count functions make Homer something something.... ;)
Далее
Woman = best friend🤣
00:31
Просмотров 3,7 млн
PowerApps Delegation and the 500 item limit
34:00
Просмотров 112 тыс.
PowerApps GroupBy function and Nested Galleries
12:30
Power Apps Variables - All 5 Types
30:11
Просмотров 8 тыс.
PowerApps Filter Gallery by the Current User
22:16
Просмотров 117 тыс.
Wait! Solve Delegation Easily! In Power Apps Search
29:57