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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Specialist
Specialist

Exception aggregation on time dimensions

Good Morning Qliks friends

We have loaded a table into Qlik. It consists of two time dimensions and a key figure "Net value USD". The two time dimensions are "Month" and "Year".

The following formula works for "Month", but if we check the values on "Year" we find wrong results. This takes place only if we select more than one year in the filter.

Sum([Net value USD])/Sum(Total <Month> [Net value USD])

How must I adjust this formula to get correct results also on year?

Many thanks.

Tom

1 Solution

Accepted Solutions
MayilVahanan

Hi @TomBond77 

May be try like this

Hope you have Year & Month as dimension, in that case

Sum([Net value USD])/Sum(Total <Year, Month> [Net value USD])

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

Hi @TomBond77 

May be try like this

Hope you have Year & Month as dimension, in that case

Sum([Net value USD])/Sum(Total <Year, Month> [Net value USD])

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
TomBond77
Specialist
Specialist
Author

Hi Mayil

Wonderful, many thanks!

Best Regards

Tom