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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
LoKi_asterix
Contributor III
Contributor III

Values changes upon selections

Hi all,

I’m using the following in my load script:

Count(DISTINCT ID) AS CustCount

Grouped by ID and Date.
In the front end, I'm calculating:

Sum(CustCount) / Sum(TOTAL CustCount)

It works perfectly when MonthYear is selected, I get the correct percentage of customers.
But when MonthYear is not selected, the percentage goes completely off.

I’ve tried a few things but I’m stuck. Any ideas on how to fix this so it always reflects the correct % with or without MonthYear selection?

Much appreciated 🙏

Labels (2)
1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

I assume that the object itself contained a period-information like the MonthYear. In this case the expression extension must reflect this dimension - maybe like:

Sum(CustCount) / Sum(TOTAL <MonthYear> CustCount)

View solution in original post

2 Replies
marcus_sommer
MVP
MVP

I assume that the object itself contained a period-information like the MonthYear. In this case the expression extension must reflect this dimension - maybe like:

Sum(CustCount) / Sum(TOTAL <MonthYear> CustCount)

LoKi_asterix
Contributor III
Contributor III
Author

I was overthinking it. This is perfect cheers!