Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
dseelam
Creator II
Creator II

Min Date

Hello all,

In below QVW I created a expression Min Date Where I need to show only if INVB<0 give me min date for current selection for particular item&Org

Some how my expression seems wrong Can some one help me putting these in to set analysis

attached samples

thanks,

D

1 Solution

Accepted Solutions
aarkay29
Specialist
Specialist

Do you mind if its in the script:

Table:

LOAD

     ITEM,

     ORG,

     Date( WKDT) as WKDT,

     SPLY,

     DMND,

      INVBAL,

     If(INVBAL<0,WKDT) as TempDate

FROM

     (txt, codepage is 1252, embedded labels, delimiter is ',', msq);

Left Join (Table):

LOAD 

     ORG,

     ITEM,

     Min(TempDate) as MinDate 

Resident

     Table;

Group By

     ITEM,ORG;

Drop Field TempDate;

View solution in original post

10 Replies
aarkay29
Specialist
Specialist

try this

Min({<INVBAL= {"=$(=sum(INVBAL)<0"} >}WKDT)

avinashelite

Or

if(INVB<0,min(WKDT))

You cannot use the Expression Name directly in the set Analysis

dseelam
Creator II
Creator II
Author

Hello Aar,

it gave be Blanks results

vishsaggi
Champion III
Champion III

What is your expected output?

avinashelite

Did you check my expression ? and don't create duplicate treads

dseelam
Creator II
Creator II
Author

Hello Nag,

My expected out put is I need min of date when that particular item turns in to negative group by ORG

I need min date for particular item for that particular org once the INVBAL start turning negative

in below case 7/3/17 is the date

example:

Capture.PNG

dseelam
Creator II
Creator II
Author

hey Avi,

your expression is correct if I am looking at whole dashboard but I need min(date) for every single item group by org I rephrased my question as

My expected out put is I need min of date when that particular item turns in to negative group by ORG

I need min date for particular item for that particular org once the INVBAL start turning negative

in below case 7/3/17 is the date

Capture.PNG

vishsaggi
Champion III
Champion III

Check this attached?

aarkay29
Specialist
Specialist

Do you mind if its in the script:

Table:

LOAD

     ITEM,

     ORG,

     Date( WKDT) as WKDT,

     SPLY,

     DMND,

      INVBAL,

     If(INVBAL<0,WKDT) as TempDate

FROM

     (txt, codepage is 1252, embedded labels, delimiter is ',', msq);

Left Join (Table):

LOAD 

     ORG,

     ITEM,

     Min(TempDate) as MinDate 

Resident

     Table;

Group By

     ITEM,ORG;

Drop Field TempDate;