Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

Set analysyis

Hi,

My set analysis is not working.

Is my set analysis is right?

Logic: = Sum({$<[Month Abbr]=, Year=, [Quarter Name]=, [Calendar Date]={"$(=date(12*(Year(max([Calendar Date])))-Year(max([Calendar Date])) +Month(max([Calendar Date]))-Month(max([Calendar Date]))"}>}[# Open])


Thanks..

6 Replies
sunny_talwar

What exactly are you trying to accomplish here?

[Calendar Date]={"$(=date(12*(Year(max([Calendar Date])))-Year(max([Calendar Date])) +Month(max([Calendar Date]))-Month(max([Calendar Date]))"}

YoussefBelloum
Champion
Champion

Hi,

you should evaluate this date part:

$(=date(12*(Year(max([Calendar Date])))-Year(max([Calendar Date])) +Month(max([Calendar Date]))-Month(max([Calendar Date]))


using Date#() and the format you used inside your expression.



nareshthavidishetty
Creator III
Creator III
Author

Hi,

We need to show the data roll back to 12 months in bar chart using set analysis.

Thanks,

jyothish8807
Master II
Master II

For rolling 12 months, you try  like this:

Dimension: [Calendar Date]

sum(Aggr(rangesum(above(total sum({<[Month Abbr]=, Year=, [Quarter Name]=>}[# Open]),0,12),[Calendar Date]))


Br,

KC

Best Regards,
KC
Anonymous
Not applicable

There are a few examples for rolling periods, maybe they can help you.

Set Analysis for Rolling Periods

sunny_talwar

Roll back 12 months from today?

=Sum({$<[Month Abbr], Year, [Quarter Name], [Calendar Date] = {"$(='>=' & Date(AddYears(Today(), -1), 'DateFieldFormatHere') & '<=' & Date(Today(), 'DateFieldFormatHere'))"}>}[# Open])