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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors