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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
cristianj23a
Partner - Creator III
Partner - Creator III

get value less than or equal to selected ID_ANNO_SEMANA

Hello, I need help.

I have a case where I have a filter, ID_YEAR_WEEK, configured to always retain a selected value.

But in the table chart, I want the following condition to be displayed in column "a."

That the values ​​of the "TARA_POND" are displayed but only with the value less than or equal to the selected ID_ANNO_SEMANA, for example in this case I am filtering the ID_ANNO_SEMANA = 202545, then for the ID_PERIODOMENSUAL = 202512 it should show the TASA_POND of the ID_ANNO_SEMANA = 20245, not 202549 since it should be less than or equal to the ID_ANNO_SEMANA, the same in ID_PERIODOMENSUAL = 202511 it should show the "TARA_POND" of ID_ANNO_SEMANA = 20215, the same in ID_PERIODOMENSUAL = 202509 it should show the TASA_POND of the ID_ANNO_SEMANA = 202538 which its value is 0.58, since 202538 is less than or equal to 202545, so it should obey that condition when filtering another ID_YEAR_WEEK.

The results should be those with the red border in the image.

 

cristianj23a_0-1760129627659.png

 

 

I would appreciate your help.

Regards.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
Labels (4)
3 Replies
rubenmarin

Hi, you can try with:

FirstSortedValue(TOTAL <ID_PERIODOMENSUAL> {<ID_ANNO_SEMANA={"<=$(=Max(ID_ANNO_SEMANA))"}>} TASA_POND,-ID_ANNO_SEMANA)

If you want to show the TASA_POND as 0 for higher ID_ANNO_SEMANA values, you can add a condition like:

If(Only({1}ID_ANNO_SEMANA)>Max(TOTAL ID_ANNO_SEMANA)
  ,0
  ,FirstSortedValue(TOTAL <ID_PERIODOMENSUAL> {<ID_ANNO_SEMANA={"<=$(=Max(ID_ANNO_SEMANA))"}>} TASA_POND,-ID_ANNO_SEMANA)
)
cristianj23a
Partner - Creator III
Partner - Creator III
Author

Hi, it's the same as what I tried.
It doesn't meet the condition.

 

cristianj23a_0-1760366197714.png

Regarts.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
rubenmarin

Hi, you should have something different, this is what I see using the expressions in your attached app:

rubenmarin_0-1760376157156.png