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: 
rajkumarb
Creator II
Creator II

Between days

Hi all I want to count the in between days of sales and credit with some filters

actual calculation works in a table, but need to work in text object

interval(SALES_Date - CREDIT_DATE,'d')

FILTERS

=({<Brand = {'Shoe'},Mode={'Direct'}>}

Please Suggest

1 Solution

Accepted Solutions
tresesco
MVP
MVP

If this filter reduces to a single possible value, you could use expression like:

=Only({<Brand = {'Shoe'},Mode={'Direct'}>} interval(SALES_Date - CREDIT_DATE,'d'))

For multiple possible values, you might want to use Sum() instead, like:

=Sum({<Brand = {'Shoe'},Mode={'Direct'}>} interval(SALES_Date - CREDIT_DATE,'d'))


Or, if you see the result is coming in multiples of expected value, you might just have to use DISTINCT, like:

=Sum(DISTINCT {<Brand = {'Shoe'},Mode={'Direct'}>} interval(SALES_Date - CREDIT_DATE,'d'))

View solution in original post

2 Replies
tresesco
MVP
MVP

If this filter reduces to a single possible value, you could use expression like:

=Only({<Brand = {'Shoe'},Mode={'Direct'}>} interval(SALES_Date - CREDIT_DATE,'d'))

For multiple possible values, you might want to use Sum() instead, like:

=Sum({<Brand = {'Shoe'},Mode={'Direct'}>} interval(SALES_Date - CREDIT_DATE,'d'))


Or, if you see the result is coming in multiples of expected value, you might just have to use DISTINCT, like:

=Sum(DISTINCT {<Brand = {'Shoe'},Mode={'Direct'}>} interval(SALES_Date - CREDIT_DATE,'d'))

Anil_Babu_Samineni

May be this?

=Only({<Brand = {'Shoe'},Mode={'Direct'}>} interval(SALES_Date - CREDIT_DATE,'d'))

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)