Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Use output from One Chart as Input to Another

Hi

I have a straight table(Sample attached) where i am calculating value  of a column(Averted Cost) using the below formula:

REMDAYS*SUM(CX_MINUTES* CX_RATE)

the field REMDAYS is a number which is calculated using a Load statement in the editor(This number is the difference between 2 dates and varies per account).

StrtTab2.PNG

I want to create another straight table, which will calculate the Sum of Averted Loss on a monthly basis. How can i do that?

I am able to get the SUM of Customer Cost as this is taken from the DB directly, but as the Averted Cost is calculated using a function, how can we use that?

Thanks

Taher

Labels (1)
1 Solution

Accepted Solutions
rubenmarin
MVP
MVP

Hi Taher, to do a table eith month as dimension (and no customer) you can add an aggr() to calculate the value per customer, and sum the value of all customers:

Sum(Aggr(REMDAYS*SUM(CX_MINUTES* CX_RATE), MonthField, CustomerField))

View solution in original post

4 Replies
vishsaggi
Champion III
Champion III

Could not find any sample attached. Can you re upload please?

rubenmarin
MVP
MVP

Hi Taher, to do a table eith month as dimension (and no customer) you can add an aggr() to calculate the value per customer, and sum the value of all customers:

Sum(Aggr(REMDAYS*SUM(CX_MINUTES* CX_RATE), MonthField, CustomerField))

Anonymous
Not applicable
Author

He Vishwarath,

I attached the image instead.

Anonymous
Not applicable
Author

Hi Ruben,

This worked. Thanks a lot.

Taher