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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
admin11
Memorable Member
Memorable Member

CSV folder load , How to filter Imvoice_Date > 1 April 2022 ?

Hi All

i am loading 5 raw data CSV file by folder from SharePoint folder. 
Below are the 5 file :- 

GL_A

GL_B

GL_C

GL_D

GL_E

File extendsion CSV

 

After loading to PBI , I have create a field SOURCE to differentiate the file by below label :- 

A

B

C

D

E

 

For SOURCE=E , I need to filter Filed=Invoice_Date > 1 April 2022

 

can some one advise me how to do it ?

 

Paul

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@admin11 , when you add them as folder and then expand using binary then you will get file name in each row in a new column. 

Create a new column in power query

= if [source name] <> "E.csv" then 1 

else if [Date] > #date(2022,4,1) then 1 else 0

 

and then filter for 1

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@admin11 , when you add them as folder and then expand using binary then you will get file name in each row in a new column. 

Create a new column in power query

= if [source name] <> "E.csv" then 1 

else if [Date] > #date(2022,4,1) then 1 else 0

 

and then filter for 1

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak 

May I know how to do at Power Quary ? So that I don't need to modify my existing expression. As only one raw data file need to be filter invoice date. 

Paul

@amitchandak very good point. thank you for give me the idea. i need to implement it . 

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 Solution Authors