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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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