Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don'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.

Reply
DSR
Helper I
Helper I

Extract all Values, INCLUDING DUPLICATES, from two columns having nested Lists, in Power query

Please,

ThanksDSR_1-1685330033132.png

1 ACCEPTED SOLUTION
DSR
Helper I
Helper I

Dear v-jingzhang,

1- Thank you for your help.

2- Kindly note Applying: 

let pFillers = [Fillers] in List.Sort(List.Select([Current EE], each List.Contains(pFillers, _)))

 without specifying the current Record, It gave error, but specifying the record it Works, like this:

let pFillers = _[Fillers] in List.Sort(List.Select(_[CurrentEE], each List.Contains(pFillers, _)))).

3- Please help me understand the condition "each List.Contains(pFillers, _)" and the underscore you used in your "List.Contains(pFillers, _) refer to what Field?

 

4- May you explain why: "each List.Select((_[CurrentEE]), each List.Contains (_[CurrentEE], (_[Fillers])))" did not work?

Thank you

DSR

View solution in original post

3 REPLIES 3
DSR
Helper I
Helper I

Hello, Please any one can help:

DSR_0-1686083089406.png

 

DSR
Helper I
Helper I

Dear v-jingzhang,

1- Thank you for your help.

2- Kindly note Applying: 

let pFillers = [Fillers] in List.Sort(List.Select([Current EE], each List.Contains(pFillers, _)))

 without specifying the current Record, It gave error, but specifying the record it Works, like this:

let pFillers = _[Fillers] in List.Sort(List.Select(_[CurrentEE], each List.Contains(pFillers, _)))).

3- Please help me understand the condition "each List.Contains(pFillers, _)" and the underscore you used in your "List.Contains(pFillers, _) refer to what Field?

 

4- May you explain why: "each List.Select((_[CurrentEE]), each List.Contains (_[CurrentEE], (_[Fillers])))" did not work?

Thank you

DSR

v-jingzhang
Community Support
Community Support

Hi @DSR 

 

You can add a custom column with this code

let pFillers = [Fillers] in List.Sort(List.Select([Current EE], each List.Contains(pFillers, _)))

vjingzhang_0-1685502209614.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.