Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
davinfrost
Contributor III
Contributor III

how to change data

hi guys, i have a case,
when i filter date, i choose month , on november.
as we can see on the table, all data showed based on paymentdate.

 

BranchInvoiceNoInvoiceDatePaymentDate KEY_DATEFLAG_TRANSTERMSIDCOD_GROUPCOD_INVOICE
CAA CISI 18 1918 CAA10/30/201811/8/201820181108Duedate_Inv1>7 DAYS9
CAA CISI 18 1923 CAA11/1/201811/2/201820181102Duedate_Inv11 DAYS1
CAA CISI 18 1927 CAA11/1/201811/16/201820181116Duedate_Inv1>7 DAYS15
CAA CISI 18 1954 CAA11/9/201811/19/201820181119Duedate_Inv1>7 DAYS10

 

 

i use this :

 

count(aggr(sum(
{<
TERMSID={'1'},
FLAG_TRANS={'Duedate_Pelunasan_Inv'},
COD_GROUP={'>7 DAYS'},

Day={">=$(=Num(Min(Day)))<=$(=Max(Day))"},
// Month={'$(=max(Month))'},
Year={'$(=max(Year))'}
>} 
COD_INVOICE),[Invoice No]))


how to change based into invoicedate, so if i choose november, only invoicedate on november are show? because its still appear 1 data from october? did i miss something?

 

 

thank you.

1 Solution

Accepted Solutions
prieper
Master II
Master II

The field "Day" is not in the above example.
Easiest would be to add a field with the month (and the year) for the invoice-date, make a selection on this field and skip the expressions after COD_Group:
count(aggr(sum(
{<
TERMSID={"1"},
FLAG_TRANS={"Duedate_Pelunasan_Inv"},
COD_GROUP={">7 DAYS"}
>}
COD_INVOICE), [Invoice No]))

it it advisable to place your search-expression in ", instead of '

View solution in original post

4 Replies
prieper
Master II
Master II

The field "Day" is not in the above example.
Easiest would be to add a field with the month (and the year) for the invoice-date, make a selection on this field and skip the expressions after COD_Group:
count(aggr(sum(
{<
TERMSID={"1"},
FLAG_TRANS={"Duedate_Pelunasan_Inv"},
COD_GROUP={">7 DAYS"}
>}
COD_INVOICE), [Invoice No]))

it it advisable to place your search-expression in ", instead of '
davinfrost
Contributor III
Contributor III
Author

when i removed "Day={">=$(=Num(Min(Day)))<=$(=Max(Day))"}," ,
it still incorrect, i mean , data from october which is "CISI 18 1918 CAA 10/30/2018",
is still appeared, what should i do??

prieper
Master II
Master II

Just post an example of your application please.
How do you calculate "Day" or "Month"?
If you need to have only those invoices with Payment-Date November and Invoice-Date November, you may create an island-field with the date to be selected and to which you refer in your calculation.
prieper
Master II
Master II

pfa and check, whether this helps.