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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Showing weeks on x axis

Hi

I am having a dimension which shows weeks on X axis , when no values are selected from a certain column , the max week should not be shown , when value is selected then then all weeks have to be shown ...

i have been trying something like below ..as my calculated dimension

if(getselectedcount(Col1) = 0 , date(startweek - 1,'MM/DD/YYYY') , date(startweek,'MM/DD/YYYY'))

but it does not work .

Thanks

2 Replies
whiteline
Master II
Master II

Hi.

It seems like it could be solved with set analysis.

Could you post an example or at least describe your chart more ?

matthieu_burel
Partner - Contributor III
Partner - Contributor III

Perhaps could you try something like ...

= IF(getselectedcount(Col1) = 0,

          IF(startweek <= Max(All startweek) - 1,

               startweek

          ,

               Null()

          )

     ,

          startweek

)