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: 
Anonymous
Not applicable

problem with set analysis

Hi community,

I have a problem with set analysis, it give me 0 where I'm sure it not the right one. Anyone help me please with this error

Sum({<DocDate={$(SelectDate)}>} Amount)


-H

Labels (1)
1 Solution

Accepted Solutions
Sokkorn
Master
Master

Hi H,

Ok, got your point. Do this way

=Sum({<DocDate = {"$(=Date(Max(DocDate),'DD.MM.YYYY'))"} >} Sales)


Edit: you need to format date according to your DocDate field.


Regards,

Sokkorn

View solution in original post

6 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

=Sum({<DocDate={'$(=SelectDate)'}>} Amount)


Regards,

Jagan.

Sokkorn
Master
Master

Hi H,

It look like you use variable in set analysis. Can you confirm:

1. SelectDate is a field name or variable? If variable, what is definition?

2. What is DocDate value look like? In Date format or number?

You may try Sum({<DocDate={"$(SelectDate)"}>} Amount)

Regards,

Sokkorn

Anonymous
Not applicable
Author

Jagan,

Still 0 value

-H

Anonymous
Not applicable
Author

Sok,

0 value too. And yes, SelectDate is a variable. SelectDate=Max(DocDate) and DocDate is a date format.

-H

Sokkorn
Master
Master

Hi H,

Ok, got your point. Do this way

=Sum({<DocDate = {"$(=Date(Max(DocDate),'DD.MM.YYYY'))"} >} Sales)


Edit: you need to format date according to your DocDate field.


Regards,

Sokkorn

Anonymous
Not applicable
Author

Sok, Jagan - Thank you so much. It work.

-H