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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
soni27
Helper I
Helper I

Filter Nested Tables

Dear Experts:

 

Please assist to fix the following error message:

 

I would like to Filter [AllRev] table based on the CutDate and perform further calculations.

[AllRev] has a column name [MaxDate]

 

I tried below syntex:

= Table.AddColumn(WholeTable, "Custom",  (x) =>  Table.SelectRows([AllRev], each [MaxDate] <= x[CutDate]))

 

CutDate AllRev Custom

43105[Table] 
43112[Table] 
43119[Table] 

 

Expression.Error: There is an unknown identifier. Did you use the [field] shorthand for a _[field] outside of an 'each' expression?

 

Cheers!! Sanjeev Soni + 66 852434420

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I think PQ is stating that it cannot find [AllRev].  Try adding the bold below.

 Table.AddColumn(WholeTable, "Custom",  (x) =>  Table.SelectRows(x[AllRev], each [MaxDate] <= x[CutDate]))

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I think PQ is stating that it cannot find [AllRev].  Try adding the bold below.

 Table.AddColumn(WholeTable, "Custom",  (x) =>  Table.SelectRows(x[AllRev], each [MaxDate] <= x[CutDate]))

 

 

Thank you Thank you Thank you!!!

Thanks for the super quick reply

 

If works well

 

cheers!! Soni

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors