Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I have a table with order lines that have duplicated order ID if a order as multiple purchased products.
i would like to flag order lines that have a certain products (column B) for the same order ID (column A)
Would you be able to help?
thx a bunch!
Solved! Go to Solution.
Hello - this is how you can do it. This example is returning true in the new column "Multi-Line and Contains Diamond" if there is more than one row of the same product category and if the product name contains the word diamond.
Table.AddColumn ( #"Changed Type", "Multi-Line and Contains Diamond", let ProductCategory = #"Changed Type"[Product Category] in (x) => Text.Contains ( x[Product], "diamond", Comparer.OrdinalIgnoreCase ) and List.Count ( List.Select ( ProductCategory, each _ = x[Product Category] ) ) > 1, type logical )
If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.
Proud to be a Microsoft Fabric Super User
Hello - this is how you can do it. This example is returning true in the new column "Multi-Line and Contains Diamond" if there is more than one row of the same product category and if the product name contains the word diamond.
Table.AddColumn ( #"Changed Type", "Multi-Line and Contains Diamond", let ProductCategory = #"Changed Type"[Product Category] in (x) => Text.Contains ( x[Product], "diamond", Comparer.OrdinalIgnoreCase ) and List.Count ( List.Select ( ProductCategory, each _ = x[Product Category] ) ) > 1, type logical )
If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.
Proud to be a Microsoft Fabric Super User
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
15 | |
13 | |
13 | |
12 | |
11 |