Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Adding Conditions

Hello,

I was wondering if anyone could help with an issue im currently facing.

I need to add totals of ammount depeding on the guy that registred it.

For example, my data base looks like this.

BuyerAmmountDailyBudgetItem Code
B1525201
B11235202
B12325201
B23435203
B2725201
B3825201
B33435203
B32135202
B31135202
B1535203

The tricky part is when i have to compare it to the daily budget.

Every buyer has his daily budget, sometimes is the same between different items and sometimes it isnt. I need a result kinda like this:

BuyerAmmountDaily Budget
B14395
B24160
B37495

The daily budget for each one is the sum the daily budget of every different item code you have.

thanks for the help,

KR

1 Solution

Accepted Solutions
sunny_talwar

Try this expression for Daily Budget:

=Sum(Aggr(Avg(DailyBudget), [Item Code], Buyer))


Capture.PNG

View solution in original post

4 Replies
Anonymous
Not applicable
Author

Use a a straight table with :

Dimension:

     Buyer

Expressions :

     sum([Ammount])

     sum([Daily Budget])

sunny_talwar

Try this expression for Daily Budget:

=Sum(Aggr(Avg(DailyBudget), [Item Code], Buyer))


Capture.PNG

Not applicable
Author

thanks, worked great

sunny_talwar

Awesome