Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

First day of week selected in set analysis - Primeiro dia da semana selecionada no set analysis

Hi guys.

I have a filter per week. And I'm needing to set in the set analysis the first day of the selected week.
I have tried this:
SUM({<[H8_UINIPRE.AutoCalendar.Date] = {"=$(data)"}>} TEMPO)


Where the variable data is:
WeekStart([H8_UINIPRE.AutoCalendar.Date],0,0)

But, this way i'm getting the sum of the whole week.
Can anybody help me?
Thanks! And sorry if my english is not so good. hahaha.

Olá pessoal. Estou trabalhando com o qlik a pouco tempo e estou precisando de uma ajudinha.
Tenho um filtro por semana. E estou precisando colocar no set analysis o primeiro dia dessa semana selecionada.
Estou tentando da seguinte forma:
SUM({<[H8_UINIPRE.AutoCalendar.Date] = {"=$(data)"}>} TEMPO)

Sendo a variável data:
WeekStart([H8_UINIPRE.AutoCalendar.Date],0,0)

Mas dessa forma está me retornando a soma da semana inteira.

Preciso disso pois tenho 6 mostradores, onde cada um tem que mostrar as informações dos respectivos dias da semana selecionada.

Alguém poderia me ajudar?
Obrigado!

1 Solution

Accepted Solutions
Not applicable
Author

I got it - Consegui

sum({$<[H8_UINIPRE.autoCalendar.Week]=,[H8_UINIPRE.autoCalendar.Date] = {'$(=weekstart(max([H8_UINIPRE.autoCalendar.Date]),0,0))'}>} TEMPO)

Thanks guys.

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Try SUM({<Weekfield=,[H8_UINIPRE.AutoCalendar.Date] = {"=$(data)"}>} TEMPO)

OmarBenSalem

Try :

sum({<[H8_UINIPRE.AutoCalendar.Date]=, [H8_UINIPRE.AutoCalendar.Date]={"$(=WeekStart(Max([H8_UINIPRE.AutoCalendar.Date])))"}>}TEMPO)

Not applicable
Author

It doesn't work .

it is still adding the whole week.

Not applicable
Author

didn't work.
This way is returning "0".

Not applicable
Author

I got it - Consegui

sum({$<[H8_UINIPRE.autoCalendar.Week]=,[H8_UINIPRE.autoCalendar.Date] = {'$(=weekstart(max([H8_UINIPRE.autoCalendar.Date]),0,0))'}>} TEMPO)

Thanks guys.