Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hello.
I have two tables: order lines and master data of product. I made a lookup values to know the master data of each product (weight, height, length, etc)
I have the following example:
Order_No Product id Master data of the product Exclude?
808 209 Yes Yes
808 210 No Yes
808 211 No Yes
809 209 Yes No
809 210 Yes No
809 211 Yes No
...
I want to exclude all the orders that dont have at least one product without master data, like that example. For that, I want to create a calculated column (Like exclude column) to flag these examples.
How can I do that?
Thank you!
Solved! Go to Solution.
Hi @Anonymous
Exclude =
IF (
"No"
IN CALCULATETABLE (
DISTINCT ( Table1[Master Data of Product] ),
ALLEXCEPT ( Table1, Table1[OrderNo] )
),
"Yes",
"No"
)
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
@Anonymous
Should work. You've probably done something differently. See it in the attached file.
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
Hi @Anonymous
Exclude =
IF (
"No"
IN CALCULATETABLE (
DISTINCT ( Table1[Master Data of Product] ),
ALLEXCEPT ( Table1, Table1[OrderNo] )
),
"Yes",
"No"
)
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
Thank you for your reply.
I'm having the error that the sintax for "IN" is incorrect. Have you tried this formula? It is the first time that i use an IN function.
Thank you.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
12 | |
10 | |
10 | |
10 |
User | Count |
---|---|
18 | |
15 | |
13 | |
11 | |
10 |