Skip to main content
Community site session details

Community site session details

Session Id : nHWc7ioQgtr56IiKx0W216
Power Apps - Building Power Apps
Unanswered

How to calculate percentage?

Like (0) ShareShare
ReportReport
Posted on 1 Aug 2023 17:25:47 by

i have sharepoint list 
username(people choice )coloumn, Date, choice colounn , working days columns.

in powerapps 

i created vertical blank gallery with Distinct(username.Email) in Item.

then inserted label : which will display username.

and in blank vertical gallery i inserted hortizontal blank gallery and in item properties mentioned as Sequence(12)  it will display months in Inserted Label.

now i want to insert one more label it will count percentage of choice coloumn ( sum of its numbers ) based on dates of month with First value of working days coloumn First(ABC).WorkingDays.
Here below code is not working showing delagation. how to fix it

If(
CountRows(
Filter(
ABC,
Month(Date) = ThisItem.Value 
)
) > 0,
Text(
Sum(
Filter(ABC,
User().Email=username.Email),
'choice'.Value=1

)
) / First(ABC).WorkingDays*100

""
)

Categories:
  • WarrenBelz Profile Picture
    149,102 Most Valuable Professional on 02 Aug 2023 at 06:04:10
    Re: How to calculate percentage?

    @venky232 

    The Month() function is not Delegable

  • venky232 Profile Picture
    on 02 Aug 2023 at 05:43:05
    Re: How to calculate percentage?

    not sure ,y it is not working for me . using nested gallery

  • WarrenBelz Profile Picture
    149,102 Most Valuable Professional on 02 Aug 2023 at 05:40:53
    Re: How to calculate percentage?

    @venky232 ,

    You will not get that Delegable using Month(Date). CountRows() is also not Delegable although there is a workaround for that. You are going to need to store the month in another field.

  • venky232 Profile Picture
    on 02 Aug 2023 at 05:11:52
    Re: How to calculate percentage?

    not working showing delagation at 

     Month(Date) = ThisItem.Value 
  • WarrenBelz Profile Picture
    149,102 Most Valuable Professional on 01 Aug 2023 at 20:41:54
    Re: How to calculate percentage?

    Hi @venky232 ,

    I cannot see your data and am guessing a bit here, but it this what you are trying to do ?

    If(
     CountRows(
     Filter(
     ABC,
     Month(Date) = ThisItem.Value 
     ) 
     ) > 0,
     Text(
     Sum(
     Filter(
     ABC,
     User().Email = username.Email) &&
     'choice'.Value = "1"
     )
     ) / WorkingDays * 100,
     "000"
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • venky232 Profile Picture
    on 01 Aug 2023 at 09:50:31
    how to count

    i have sharepoint list 
    username(people choice )coloumn, Date, choice colounn , working days columns.

    in powerapps 

    i created vertical blank gallery with Distinct(username.Email) in Item.

    then inserted label : which will display username.

    and in blank vertical gallery i inserted hortizontal blank gallery and in item properties mentioned as Sequence(12)  it will display months in Inserted Label.

    now i want to insert one more label it will count percentage of choice coloumn ( sum of its numbers ) based on dates of month with First value of working days coloumn First(ABC).WorkingDays.
    Here below code is not working showing delagation. how to fix it

    If(
    CountRows(
    Filter(
    ABC,
    Month(Date) = ThisItem.Value 
    )
    ) > 0,
    Text(
    Sum(
    Filter(ABC,
    User().Email=username.Email),
    'choice'.Value=1

    )
    ) / First(RTW).WorkingDays*100

    ""
    )

     

  • venky232 Profile Picture
    on 31 Jul 2023 at 09:04:36
    Groupby count

    i have sharepoint list 
    username(people choice )coloumn, Date, choice colounn , working days columns.

    in powerapps 

    i created vertical blank gallery with Distinct(username.Email) in Item.

    then inserted label : which will display username.

    and in blank vertical gallery i inserted hortizontal blank gallery and in item properties mentioned as Sequence(12)  it will display months in Inserted Label.

    now i want to insert one more label it will count percentage of choice coloumn ( sum of its numbers ) based on dates of month with First value of working days coloumn First(ABC).WorkingDays.
    Here below code is not working showing delagation. how to fix it

    If(
    CountRows(
    Filter(
    ABC,
    Month(Date) = ThisItem.Value 
    )
    ) > 0,
    Text(
    Sum(
    Filter(ABC,
    User().Email=username.Email),
    'choice'.Value=1

    )
    ) / First(RTW).WorkingDays*100

    ""
    )

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473