Skip to main content

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld 2023, a live, in-person thrill ride. Save $300 before February 6: REGISTER 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'))

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)