Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
wunderch
Creator II
Creator II

Articleprice changed

Hi guys,

I have the following problem:

I have a table with Date, Article, Price regular and Price supply. (like xlsx)

Now I want to get only Article shown in a table, who have the same "Price supply" since more then 55 days. (like Article 1234)

How can I get this? With Script or Expression in the table?

Please help, I'm frustrated!

Regards

Christian

1 Solution

Accepted Solutions
ahaahaaha
Partner - Master
Partner - Master

Hi,

May be like this

If(Count(Aggr(DISTINCT Sum({<Date={">=$(=Date(Max(Total <Article> Date)-55))"}>} [Price supply]), Article, [Price supply]) )=1, [Price supply])


Example at attached file.

Regards,

Andrey

View solution in original post

5 Replies
antoniotiman
Master III
Master III

Hi Christian,

You can try

Only({<Date={'>=$(=Date(Today()-55))'}>} [Price supply])

Regards,

Antonio

micheledenardi
Specialist II
Specialist II

I've create a new field that count how many times the Price Supply is equal to its previous record and it works fine:

MainTable:

LOAD Date,

     Article,

     [Price regular],

     [Price supply],

     if(peek([Price supply])=[Price supply],peek(Count)+1,1) as Count

FROM

[Price regular vs Price supply.xlsx](ooxml, embedded labels, table is Tabelle1);

2017-08-03 08_56_45-QlikView x64 Personal Edition - [C__Users_Michele.Denardi_Desktop_aaa - Copia.qv.png

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
ahaahaaha
Partner - Master
Partner - Master

Hi,

May be like this

If(Count(Aggr(DISTINCT Sum({<Date={">=$(=Date(Max(Total <Article> Date)-55))"}>} [Price supply]), Article, [Price supply]) )=1, [Price supply])


Example at attached file.

Regards,

Andrey

wunderch
Creator II
Creator II
Author

Hi Andrey,

that's it.

Thanks for your quick answer.

Regards,

Christian

ahaahaaha
Partner - Master
Partner - Master

Was glad to help you

Regards,

Andrey