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

Count and Set Analys

Hello,

I cannot get this Count working, what do I do wrong?

= Count({< KundNr = {"=Sum( {$<$(vSetRolling12)>} $(vNettoFörs) )> $(vOmsG)"}>}Distinct KundNr)

kindly

Håkan

1 Solution

Accepted Solutions
sunny_talwar

Try changing this to single quotes

Capture.PNG

View solution in original post

13 Replies
tresesco
MVP
MVP

Without knowing your variable definitions it would be hard to even guess. Could you post your qvw sample?

sunny_talwar

I agree with tresesco‌ but for starters may be try this:

=Count({< KundNr = {"=Sum( {$<$(vSetRolling12), $(vNettoFörs)>} $(vOmsG)"}>}Distinct KundNr)

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

Can u please share the sample file that shows ur issue.

Anil_Babu_Samineni

I really Don't no, Why do you use the Sum

Count({< KundNr = {"$(=RangeSum('vSetRolling12','vNettoFörs','vOmsG')"}>}Distinct KundNr)


Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Hello again,

this is the error I get:

Count1.png

All the variables works by themselves, it´s when I try to compare with variable vOmsG it fails.

I tried Sunny T:s change but got the same error.  I will try to create an example qvw.

kindly

Håkan

sunny_talwar

Do you happen to have double quotes within any of your three variables? I think it would be helpful if we can see how you define your three variables?

Not applicable
Author

Hello,

here are my variables:

Count2.png

Count3.png

Count4.png

Anil_Babu_Samineni

For 1st Variable Remove PeriodID

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

Try changing this to single quotes

Capture.PNG