Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculated Dimension based in Another Dimension

Hello

I want to make a pivot chart that show me the sales of each store, but only I want to view the stores that have more than $ 800 in the last week based on today  (no matter the filters I use on dates).

I try to make the next calculated dimension but the system give me an error:

=If(Sum({<FECHA = {">=$(=WeekStart(Date(Today()-7))) <=$(=WeekEnd(Date(Today()-7)))"}>} TOT_COMISION_COMPARTIDA) > 800, TOT_COMISION_COMPARTIDA)

Somebody have a better idea

Best Regards

1 Solution

Accepted Solutions
MarcoWedel

Hi,

one solution could be:

QlikCommunity_Thread_168627_Pic1.JPG

QlikCommunity_Thread_168627_Pic4.JPG

QlikCommunity_Thread_168627_Pic2.JPG

QlikCommunity_Thread_168627_Pic3.JPG

hope this helps

regards

Marco

View solution in original post

8 Replies
sinanozdemir
Specialist III
Specialist III

Try to put it in an Aggr() function.

Hope this helps

Not applicable
Author

Where I need to put it??

sinanozdemir
Specialist III
Specialist III

=If(Aggr(your function(), Dimension), Dimension).

Not applicable
Author

It not send me an error, but not display me the stores, only leave in blank the dimension

sunny_talwar

Try this may be:

=If(Aggr(Sum({<FECHA = {">=$(=WeekStart(Date(Today()-7))) <=$(=WeekEnd(Date(Today()-7)))"}>} TOT_COMISION_COMPARTIDA), SomeSortofStoreID) > 800, TOT_COMISION_COMPARTIDA)

Not applicable
Author

Nop is not working

sinanozdemir
Specialist III
Specialist III

Can you post a sample dataset if it is not confidential?

Thanks

MarcoWedel

Hi,

one solution could be:

QlikCommunity_Thread_168627_Pic1.JPG

QlikCommunity_Thread_168627_Pic4.JPG

QlikCommunity_Thread_168627_Pic2.JPG

QlikCommunity_Thread_168627_Pic3.JPG

hope this helps

regards

Marco