Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Please help me with the below expression.

  I am trying to calculate the Growth Amt over the Goal amt to use as a percentage.

AGGR(SUM({$<[Metric Type]={'Actual'}>}[Deposit Growth Amt]),[Goal Employee Id]) / (AGGR(SUM({$<[Metric Type]={'Goal'}>}[Deposit Growth Amt]),[Goal Employee Id]))

1 Solution

Accepted Solutions
Not applicable
Author

Hi Aptha,

As per your requirement Im trying to understand why are you using aggr()? aggr() calculates cummulatively.

Is that what you want?

I believe you could write something like this:

num(sum({<[Metric Type]={'Actual'}>}[Deposit Growth Amt]) / sum({<[Metric Type]={'Goal'}>}[Deposit Growth Amt]),'##.##')

the num() here is optional.

as there is a check box that says "Show Relative".Please keep this Checked .

Hope this helps.

Please get back to me with the result.

Rochelle

View solution in original post

5 Replies
qlikpahadi07
Specialist
Specialist

attach a Sample which will be helpful

Not applicable
Author

Hi Aptha,

As per your requirement Im trying to understand why are you using aggr()? aggr() calculates cummulatively.

Is that what you want?

I believe you could write something like this:

num(sum({<[Metric Type]={'Actual'}>}[Deposit Growth Amt]) / sum({<[Metric Type]={'Goal'}>}[Deposit Growth Amt]),'##.##')

the num() here is optional.

as there is a check box that says "Show Relative".Please keep this Checked .

Hope this helps.

Please get back to me with the result.

Rochelle

israrkhan
Specialist II
Specialist II

HI,

What are your dimensions in Table,

Not applicable
Author

     Thank you John.It did work.

Not applicable
Author

Im glad I could help