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