Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! 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"
)
)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 14 | |
| 11 | |
| 8 | |
| 6 | |
| 5 |