cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sasidhar_mudra
Level: Powered On

Count of Employees

Hi All,

 

Thanks for the Power-users family, I was able to use and do most of the things now. I came across something and I would like to try it. 

Idea:
I have an app where the employees submit their responses in Power Apps survey i created. The responses save in SharePoint list. 
I want to create a form where i can see the count of employees who responded to the survey using the list. Attaching the rough work i made while thinking.

Note: All the columns in SP list are of Single Line of text format

 

Is there a way to achieve this in Power Apps? If yes, kindly help 🙂

 

Chart3.JPG

 

Thanks

Sasidhar

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Count of Employees

Hi @sasidhar_mudra ,

Could you please share a bit more the formula you typed within the Items property of the Business Line Dropdown box and Business Line 2 Dropdown box? Are they ComboBox controls?

Do you want to count the Employees in your SP List based on the two Dropdown box selected value(s)?

 

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

1. Set the Items property of the Business Line ComboBox to following:

Distinct('YourSPLIist', 'BUSINESS LINE')

set the SelectMultiple property to following:

false

 

2. Set the Items property of the Business Line 2 ComboBox to following:

Distinct(
         Filter('YourSPList', 'Business Line' = BusinessLineComboBox.Selected.Result), 
         'BUSINESS LINE 2'
)

set the SelectMultiple property to following:

true

 

3. Add a Label within your app, set the Text property to following:

CountRows(
           Filter('YourSPList', 'BUSINESS LINE' = BusinessLineComboBox.Selected.Result, 'BUSINESS LINE 2' in BusinessLine2ComboBox.SelectedItems.Result)
)
           

then the count of the Employees would display within above Label.

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

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

3 REPLIES 3
Super User
Super User

Re: Count of Employees

@sasidhar_mudra 

Have you considered using the CountRows function?  You can put any datasource inside it and the function will return the count up to 500 rows.

 

Example:

CountRows(your_datasource_name)

 

To return the count of respondants to a survery you can use COUNTROWS and FILTER.

 

CountRows(
    Filter(
        your_datasource_name,
        survey_title = "Employee Safety Survey"
    )
)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Community Support Team
Community Support Team

Re: Count of Employees

Hi @sasidhar_mudra ,

Could you please share a bit more the formula you typed within the Items property of the Business Line Dropdown box and Business Line 2 Dropdown box? Are they ComboBox controls?

Do you want to count the Employees in your SP List based on the two Dropdown box selected value(s)?

 

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

1. Set the Items property of the Business Line ComboBox to following:

Distinct('YourSPLIist', 'BUSINESS LINE')

set the SelectMultiple property to following:

false

 

2. Set the Items property of the Business Line 2 ComboBox to following:

Distinct(
         Filter('YourSPList', 'Business Line' = BusinessLineComboBox.Selected.Result), 
         'BUSINESS LINE 2'
)

set the SelectMultiple property to following:

true

 

3. Add a Label within your app, set the Text property to following:

CountRows(
           Filter('YourSPList', 'BUSINESS LINE' = BusinessLineComboBox.Selected.Result, 'BUSINESS LINE 2' in BusinessLine2ComboBox.SelectedItems.Result)
)
           

then the count of the Employees would display within above Label.

 

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

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

sasidhar_mudra
Level: Powered On

Re: Count of Employees

@v-xida-msft ,

 

This worked. Thank you

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,836)