Forum Discussion
stieve63
2 years agoNew Member
Calculate function context issue
Hello, Think I have a context issue with my calculate function: Tot sales Qty Fietsen = CALCULATE([Total Sales Quantity], Products[Product Group Level 1] = "fietsen", NOT Products[Product Group...
- 2 years ago
HI,
I am not sure if I understood your question correctly, but please try something like below whether it suits your requirement.
Tot sales Qty Fietsen = CALCULATE ( [Total Sales Quantity], FILTER ( Products, Products[Product Group Level 1] = "fietsen" && NOT ( Products[Product Group Level 2] IN { "compensatie afmontage", "kortingen" } ) && Products[Product Group Level 3] <> "accu" ) )
Jihwan_Kim
2 years agoSuper User
HI,
I am not sure if I understood your question correctly, but please try something like below whether it suits your requirement.
Tot sales Qty Fietsen =
CALCULATE (
[Total Sales Quantity],
FILTER (
Products,
Products[Product Group Level 1] = "fietsen"
&& NOT ( Products[Product Group Level 2] IN { "compensatie afmontage", "kortingen" } )
&& Products[Product Group Level 3] <> "accu"
)
)