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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set analysis problem

I like to have the budget next to the 'real' value according the correct date

is this possible with set analysis??

1 Solution

Accepted Solutions
Not applicable
Author

I think the problem is in your date formatting. Use the makedate() function with your input data to make a formatted date value. Your syntax looks sound, but your dates are not being evaluated as dates and as a result, your expression is returning zero.

View solution in original post

8 Replies
Not applicable
Author

this is what i would like to have!

Not applicable
Author

I think the problem is in your date formatting. Use the makedate() function with your input data to make a formatted date value. Your syntax looks sound, but your dates are not being evaluated as dates and as a result, your expression is returning zero.

Not applicable
Author

i now have this function but the same result

can you give me a hint how to use the make date??

sum({$<Budget_BeginDate={"<=$(=DATE(Reak_Date,'DD-MM-YYYY'))"},Budget_EndDate={">=$(=DATE(Reak_Date,'DD-MM-YYYY'))"}>}Budget_value)



Not applicable
Author

i changed my example with numbers instead of dates and this also not works

can you please have a look at it

Not applicable
Author


Jochem wrote:
i now have this function but the same result
can you give me a hint how to use the make date??

sum({tiny_mce_markerlt;Budget_BeginDate={"<=$(=DATE(Reak_Date,'DD-MM-YYYY'))"},Budget_EndDate={">=$(=DATE(Reak_Date,'DD-MM-YYYY'))"}>}Budget_value)
<div></div>


You have to use makedate during the load script.

Makedate(year, month, day)

So if your input is 01-31-2008, your makedate formula would be makedate(subfield(field_name, '-', 3), subfield(field_name, '-', 1), subfield(field_name, '-', 2)).

Not applicable
Author

can you please have a look at the other post (problem2.qvw) because in this example i changed the date to numbers, and this also does not work!

Not applicable
Author


Jochem wrote:
can you please have a look at the other post (problem2.qvw) because in this example i changed the date to numbers, and this also does not work!<div></div>


I can't quite figure out what happened in this one, but your syntax is not correct. I think this is what you were trying to accomplish...

sum({$<Budget_Begin = {'<=$(Real)'}, Budget_End = {'>=$(Real)'}>} Budget_value)

Not applicable
Author

this is what I was trying to accomplish

real 15 is between 10-20 so budget is 10

real 35 is between 30-40 so budget is 20 etc.