Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |