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
vjnvinod
Impactful Individual
Impactful Individual

Help with advance editor

Hi Team,

 

i have the below step in the advance editor which is causing problem when i refresh the data monthly

 

#"Removed Other Columns" = Table.SelectColumns(#"Expanded Table Column1",{"US Government & Public Sector GTER Summary FY19 P08", "Column3", "Column4"})

 

the reason is every month the file name changes to US Government & Public Sector GTER Summary FY19 P09 and so on.

 

Now from FY20, the file will start coming as US Government & Public Sector GTER Summary FY20 P01 and son on.

how do i resolve this, without going to Advance editor and changing the values  everytime 

1 ACCEPTED SOLUTION

Hi @vjnvinod ,

You might find the reason and the solution here: http://datachant.com/2017/01/06/10-mistakes-you-always-do-in-powerbi-powerquery/

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
vjnvinod
Impactful Individual
Impactful Individual

@Anonymous 

 

actually the issue is not with the source data, source data is connected via folder, so no issues there.

 

issue is with the steps inside the source data, which is not allowing the refresh to work

Hi @vjnvinod ,

You might find the reason and the solution here: http://datachant.com/2017/01/06/10-mistakes-you-always-do-in-powerbi-powerquery/

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

You can solve the same using parameters in powerBI, link how to use it here.

Anonymous
Not applicable

Hey @vjnvinod !

 

I'm doing more work in power query/m every day. I haven't worked too much with file names; however, I did find this LINK which shows an approach that might help you overcome your obstacle. 

 

It defines a source (i.e., directory) in advanced editor & then uses Table.SelectRows & Text.StartsWith to pull data from a file based on the characters the file name starts with. 

 

Hope this helps.

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