Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
himanshi
Contributor III
Contributor III

calculation based on variable for pivot

Hi Community,

  I have a requirement to get the calculation of a expression based on min and max date variable excluding date selection. please help.

Regards.

2 Solutions

Accepted Solutions
Anonymous
Not applicable

try like this?

=count(<DateField={"$(= '>=' & date(startdate Variable) & '<=' & date(enddate Variable))"}>} distinct customer)

View solution in original post

himanshi
Contributor III
Contributor III
Author

HI Sunny AND Balraj,

Thanks for the reply this is done.

i have used this for min date : sum({$<[DATE Field] = {"<=$(=vmin)"}>} Inventory)

          and for max date:  sum({$<[DATE Field] = {">=$(=vmax)"}>} Inventory)

Regards,

Himanshi

View solution in original post

3 Replies
sunny_talwar

May be something like this:

=Sum({<Date = {"$(='>=' & Date(vStart) & '<=' & Date(vEnd))"}>}Sales)


Capture.PNG

Anonymous
Not applicable

try like this?

=count(<DateField={"$(= '>=' & date(startdate Variable) & '<=' & date(enddate Variable))"}>} distinct customer)

himanshi
Contributor III
Contributor III
Author

HI Sunny AND Balraj,

Thanks for the reply this is done.

i have used this for min date : sum({$<[DATE Field] = {"<=$(=vmin)"}>} Inventory)

          and for max date:  sum({$<[DATE Field] = {">=$(=vmax)"}>} Inventory)

Regards,

Himanshi