Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Daniel1908
Creator
Creator

-= Does not work

Hello together, 

the exclusion of -= does not work in the below formula. 
Any Ideas?

=Count(distinct{$-1<[Request]={"x"}>*<[VG]-={7584,2456}>}
If(round([Price1],0.01)>round([Price2],0.01)and[LoadDate]='$(var_Year)',Material,null()))

Kind Regards
Daniel

6 Replies
Anil_Babu_Samineni

Can you try this and see?

=Count(distinct{$-1<[Request]={"x"}>*<[VG]-={7584,2456}>}
If(round([Price1],0.01)>round([Price2],0.01)and[LoadDate]='$(var_Year)',Material,null()))

Also, Only this?

=Count(distinct {$-1<[VG]-={7584,2456}>} Material)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Daniel1908
Creator
Creator
Author

$-1<[Request]={"x"} is necessary for the formula. 

But it works without it. 

Any Idea how to get this solved?

tresesco
MVP
MVP

Not sure what you are trying to achieve. May be:

=Count(distinct{$-1(<[Request]={"x"}>*<[VG]-={7584,2456}>)}

Daniel1908
Creator
Creator
Author

This worked

=Count(distinct{-1<[Request]-={"x"}>*<[VG]-={7584,2456}>}

Kind Regards,
Daniel

tresesco
MVP
MVP

So it was a AND/OR combination issue?

Daniel1908
Creator
Creator
Author

I guess this was the problem. 

Thanks for your help. 

Kind Regards, 
Daniel