cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cmilligan262
Regular Visitor

Weighted % of funding calculation

I am trying to get to a weighted % of funding based on multiple criteria, business unit % funding of a project (static, pulling in from a data source), and % of time a person will spend on a project (changes from person to person, text in put). I currently have these set up as gallery's as the number of projects a person works on can change. The projects are selected from a combo box, the gallery then pulls in the project names and has a text input that I want to put in the persons % allocation for that project. I want these numbers to feed into another gallery that shows % of business unit funding based on the % the BU funds and the % of the persons time on the project. Currently it is just weighting based on what input box I have selected and not multiplying by the corresponding project. Any help is appreciated. Below is an example of what I'm looking to achieve.

 

cmilligan262_0-1618931952470.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @cmilligan262 :

Could you tell me if this can meet your needs?

41.gif

If so,I've made a test for your reference:

I assume there is a table-TheDateBase

ClearCollect(
 TheDateBase,
 {Project:"Project 1",Found:"BU1",Static:20%},
 {Project:"Project 1",Found:"BU2",Static:80%},
 {Project:"Project 2",Found:"BU3",Static:100%}
)

1\Add a gallery(Gallery6) and set it's Items property to:

Table({Split:"Project 1"},{Split:"Project 2"})

2\Add a TextInput(TextInput1) control in to Gallery 6 

3\Add an Other Gallery(Gallery7) and set it's Items property to:

Distinct(TheDateBase,Found)

4\Add a label control into Gallery7 and set it's Text property to:

Sum(
    ForAll(
        Gallery6.AllItems As GalleryAllItem,
        LookUp(
            TheDateBase,
            Project = GalleryAllItem[@Split] && Found = ThisItem.Result
        ).Static * GalleryAllItem[@TextInput1].Text
    ),
    Value
)

Best Regards,

Bof

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @cmilligan262 :

Could you tell me if this can meet your needs?

41.gif

If so,I've made a test for your reference:

I assume there is a table-TheDateBase

ClearCollect(
 TheDateBase,
 {Project:"Project 1",Found:"BU1",Static:20%},
 {Project:"Project 1",Found:"BU2",Static:80%},
 {Project:"Project 2",Found:"BU3",Static:100%}
)

1\Add a gallery(Gallery6) and set it's Items property to:

Table({Split:"Project 1"},{Split:"Project 2"})

2\Add a TextInput(TextInput1) control in to Gallery 6 

3\Add an Other Gallery(Gallery7) and set it's Items property to:

Distinct(TheDateBase,Found)

4\Add a label control into Gallery7 and set it's Text property to:

Sum(
    ForAll(
        Gallery6.AllItems As GalleryAllItem,
        LookUp(
            TheDateBase,
            Project = GalleryAllItem[@Split] && Found = ThisItem.Result
        ).Static * GalleryAllItem[@TextInput1].Text
    ),
    Value
)

Best Regards,

Bof

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Bizz Summit 768x460.jpg

Biz Summit 2021

Check out the Spanish Bizz Summit June 4th & 5th. Featured Speakers Michelle Wong & Christian Abata

Top Solution Authors
Top Kudoed Authors
Users online (34,016)