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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Set Analysis and If

Hi Guys,

I am trying to build an expression inside a text box as follow:

=if(Weekend(DateLL)>Date(Today()-7) and Weekend(DateLL)<Date(Today()),Count({$<[DateType]={"RFS"} >}[Name]))

For some reason it is not working..

I have tried to put only Count({$<[DateType]={"RFS"} >}[Name])) and got the nrs,

and I have tried to put if(Weekend(DateLL)>Date(Today()-7) and Weekend(DateLL)<Date(Today()),0,1) and it works..

But whenever I put them together I dont get the right nr..in fact I get "-"

Thxs,

Badr

1 Solution

Accepted Solutions
sivarajs
Specialist II
Specialist II

Count({$<[DateType]={"RFS"} >} if(Weekend(DateLL)>Date(Today()-7) and Weekend(DateLL)<Date(Today()),[Name]))

Check your DateLL date format is matching with today() format

View solution in original post

2 Replies
sivarajs
Specialist II
Specialist II

Count({$<[DateType]={"RFS"} >} if(Weekend(DateLL)>Date(Today()-7) and Weekend(DateLL)<Date(Today()),[Name]))

Check your DateLL date format is matching with today() format

alec1982
Specialist II
Specialist II
Author

Thxs so much for all your help!