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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
AdrianoEllero
Contributor III
Contributor III

I need help on filtering measures by dimensions

=sum({<[CalendarYear]={"=CalendarYear-1"},[Material Number (Product)]={
'xyz',
}>}Quantity)

it does't work

 

on simple filter [Material Number (Product)]={'xyz'} is effective

Labels (2)
1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

Try this

=sum({<CalendarYear={"$(=Max(CalendarYear)-1)"}, [Material Number

 

View solution in original post

4 Replies
Nicolae_Alecu
Creator
Creator

Are you using this measure into kpi or table object?

Try this:

=sum({<[CalendarYear]={"$(=CalendarYear-1)"},[Material Number (Product)]={'xyz'}>}Quantity)

 

Best Regards,

AdrianoEllero
Contributor III
Contributor III
Author

yes either table or pitvot table

 

Chanty4u
MVP
MVP

Try this

=sum({<CalendarYear={"$(=Max(CalendarYear)-1)"}, [Material Number

 

AdrianoEllero
Contributor III
Contributor III
Author

It works! thanks so much. But why so? Is there any document that describes how to execute operation with fields?