Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
Think I have a context issue with my calculate function:
What am I doing wrong in the syntax?
Solved! Go to Solution.
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"
)
)
Thx a lot @Jihwan_Kim
How could I overlook the FILTER function, I feel a bit stupid now but still new at PowerBI, learning everyday 😉
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"
)
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 28 | |
| 19 | |
| 11 | |
| 10 |