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"
)
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 35 | |
| 31 | |
| 19 | |
| 13 | |
| 10 |