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

Ignore all selections doesn't work with a condition

@

Hello all,

I would like to ignore all the selections done for a graph. I am aware that inserting '1' in front of all the condition it should work as follows:


sum({1<[Project]={'X'},Date = {"=len([Date]) >=0"},Quarter={'Q1'},[Año Presentación]= {$(=Year(Today())) ,$(=Year(Today())-1) },[State =-{'WWW}>} Object)




but in my case it is not working due to this part of the expresion: Date = {"=len([Date]) >=0"} , If  I remove this part out of my expression the 1 Set analysis condition works perfectly.

Could you please advice on how I should proceed to ignore all my selections with this part I need Date = {"=len([Date]) >=0"}  in the expression?


Thanks in advance!

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Date = {"=len(Only({1}[Date])) >=0"}

View solution in original post

4 Replies
swuehl
MVP
MVP

Date = {"=len(Only({1}[Date])) >=0"}

vinieme12
Champion III
Champion III

create a flag in Load script


if(len([Date]) >=0,1,0) as Flag_DateLen


then replace


sum({1<[Project]={'X'},Flag_DateLen= {1},Quarter={'Q1'},[Año Presentación]= {$(=Year(Today())) ,$(=Year(Today())-1) },[State =-{'WWW}>} Object)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Anonymous
Not applicable
Author

Thanks! it works

Anonymous
Not applicable
Author

Hello vinieme12

Thanks so much this is another workaround I will take into account!