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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Condition "or" in Advanced Editor (M)

Hi all,

I'm currently working on a Query in PowerBI. A condition I want to create is to grab all files that end with ".xlsx" OR ".XLSX"

 

I tried this: 

Documents= Table.SelectRows(Source, each [Extension] = ".XLSX" or ".xlsx")

 

but it doesn't work as desired. Please note: I need both, simply changing the ending of the data will probably lead to problems in the future.

Just adding another line with "Documents" in the Advanced Editor doesn't work as well, Documents can only be used once.

1 ACCEPTED SOLUTION
PC2790
Community Champion
Community Champion

Did you try:

 

Documents= Table.SelectRows(Source, each [Extension] = ".XLSX" or [Extension] = ".xlsx")

 

It works for me

View solution in original post

1 REPLY 1
PC2790
Community Champion
Community Champion

Did you try:

 

Documents= Table.SelectRows(Source, each [Extension] = ".XLSX" or [Extension] = ".xlsx")

 

It works for me

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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