cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Count rows i database using dropdown list

Hi my problem is combining this two
Solved to count logs by using ropdownlist selecting typeof class
CountIf('visit-log';Program.Value = ddprogram.Selected.Value )
and i solevd the total amount of logs for contract
CountIf('visit-log';purpose.Value = "Contract")

No i want to show contracts by class in my textbox instead of the total
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Count rows i database using dropdown list

Hi @dalacarelia_196,

Do you want to combine the two CountIf formula within your app?

I have made a test on my side, please take a try with the following formula:

CountIf('visit-log'; Program.Value = ddprogram.Selected.Value && purpose.Value = "Contract")

Or

CountRows(Filter('visit-log'; Program.Value = ddprogram.Selected.Value && purpose.Value = "Contract"))

More details about the && operator in PowerApps, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/operators

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Count rows i database using dropdown list

Hi @dalacarelia_196,

Do you want to combine the two CountIf formula within your app?

I have made a test on my side, please take a try with the following formula:

CountIf('visit-log'; Program.Value = ddprogram.Selected.Value && purpose.Value = "Contract")

Or

CountRows(Filter('visit-log'; Program.Value = ddprogram.Selected.Value && purpose.Value = "Contract"))

More details about the && operator in PowerApps, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/operators

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Helper III
Helper III

Re: Count rows i database using dropdown list

Thank you , it realy helped me . 

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,409)