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

Set Analysis not working????

Hi All

I have a point in time set analysis that should be returning the value for latest period - 11:

Avg({$<BasketFC.PeriodID = {"=$(=Max(BasketFC.PeriodID) - 11)"}>} BasketFC.BasketPercentage)

But for a reason I cannot fathom it's ignoring the Set completely?

But the following works:

=Avg({$<BasketFC.PeriodID = {1}>} BasketFC.BasketPercentage)

I've checked that =Max(BasketFC.PeriodID) - 11 does equal 1.....?

Please can anyone advise where I'm going wrong with this?

Thanks

Dominic

1 Solution

Accepted Solutions
Not applicable
Author

Figured it out! I needed to remove the quotes:

Avg({$<BasketFC.PeriodID = {$(=Max(BasketFC.PeriodID) - 11)}>} BasketFC.BasketPercentage)

View solution in original post

4 Replies
sushil353
Master II
Master II

hi,

Try this:

Avg({$<BasketFC.PeriodID = {"=$(=Maxstring(BasketFC.PeriodID) - 11)"}>} BasketFC.BasketPercentage)


HTH

Sushil

Not applicable
Author

Hi Sushil

That didn't make a difference?

Dom

rajni_batra
Specialist
Specialist

Try

Avg({$<BasketFC.PeriodID = {"$(=BasketFC.PeriodID)-11)"}>} BasketFC.BasketPercentage

Not applicable
Author

Figured it out! I needed to remove the quotes:

Avg({$<BasketFC.PeriodID = {$(=Max(BasketFC.PeriodID) - 11)}>} BasketFC.BasketPercentage)