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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
RiniMaria
Frequent Visitor

Excel filter to reflect during import to PowerBI

Hi,

 

I have my source data in excel which is updated regularly. This table is the data source for my report in PowerBI. I need to refresh my data in PowerBI based on the filters applied to the source file.

 

For ex:

This is my data in Excel

RiniMaria_1-1666593749888.png

 

My data in powerbi after import should contain all the values indicated above and exclude whatever has been filtered out. And when the filter changes, it should reflect that in powerbi after refresh.

 

Is this possible?

Thanks in advance!

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

try this step

1 add a new column in excel file, say the header is "Flag", and input the formula

    =subtotal(103,b2)

2 amend your M code, add a new step

   =Table.SelectRows(PreviousStepName,each [Flag]=1)

 

then after changing the filters of excel file, save it, then refresh in PBI files. 

 

View solution in original post

1 REPLY 1
wdx223_Daniel
Super User
Super User

try this step

1 add a new column in excel file, say the header is "Flag", and input the formula

    =subtotal(103,b2)

2 amend your M code, add a new step

   =Table.SelectRows(PreviousStepName,each [Flag]=1)

 

then after changing the filters of excel file, save it, then refresh in PBI files. 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors