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

Hi community

I have a problem with set analysis in a expression.

Actually I want to calculate the count of data field excluding the current week.Here is my expression.Field and data are dummy fields

 

Count({$<[Week Date]={"<$(#vCurrentWeek)"},[Field)]={'>10'}>}[Data])

 

vCurrentWeek= Date(Max([Week Date]),'DD.MM.YYYY')

For example vCurrentWeek will be 28.07.2013 considering the last sunday

any help will be appreciated.

7 Replies
Not applicable
Author

Try below...

Count({<[Week Date]={'<$(vCurrentWeek)'},Field={'>10'}>}[Data])

Regards-Bika

Not applicable
Author

Thanks Bika

But unfortunately it is not working.still chart is not displaying any data .If I remove Week Date filter in the expression it is working fine.Some problem with the Week Date.

My week date is in the formate DD.MM.YYYY

Is this creating any problem here?

Regards

Murali Krishna

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

     If you have done any selections then you must deselect them in set analysis.

     Say for example if you have selected Month and Year then your expression should be.

     Count({$<[Week Date]={"<$(#vCurrentWeek)"},[Field)]={'>10'},Month=,Year=,Week=>}[Data])

     Also make sure that the date format of the [Week Date] field and the Variable is same.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Try to change week date format DD.MM.YYYY   to DD/MM/YYYY.

hope it will help u

Not applicable
Author

try this

Count({$<[Week Date]={'<vCurrentWeek'},[Field)]={'>10'}>}[Data])

and check the format of [Week Date] and vCurrentWeek, both format should must be same

Not applicable
Author

No luck Bika

Still same problem.

Not applicable
Author

Still not working Vishwa