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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
swathrddy
Helper I
Helper I

auto Refresh monthly

Hi All,

 

I created KPI dashboard, Data extracted from Excel file (See pic). I am manually refreshing the data everymonth and then Unpivoting the NEW Date/Month Column.  

 

= Table.Unpivot(#"Changed Type1", {"1/01/2024", "1/02/2024", "1/03/2024", "1/04/2024", "1/05/2024", "1/06/2024", "1/07/2024", "1/08/2024"}, "Attribute", "Value")

 

Question: what is the best way to automate this process for next month. Excel file is in sharepoint which will be updated by multiple users. the numbers should appear in the dashboard.

 

Please suggest.

 

swathrddy_0-1726042785809.png

swathrddy_1-1726043252785.png

 

swathrddy_2-1726043286591.png

 

Regards!

 

1 ACCEPTED SOLUTION
lkalawski
Super User
Super User

Hi @swathrddy,

 

Change the logic to UnpivotOtherColumns and then you don't need to edit the code every month.

1. Start point

lkalawski_0-1726043939294.png

2. Unpivot Other columns (select columns which you don't want to unpivot and then click on this option):

lkalawski_1-1726043992390.png

3. The result:

lkalawski_2-1726044007964.png

 

Now you can setup a schedule refresh in Power Bi service.

 

 

PBI_SuperUser_Rank@1x.pngMemorable Member | Former Super User
If I helped, please accept the solution and give kudos! 
Linkedin

 

View solution in original post

3 REPLIES 3
lkalawski
Super User
Super User

Hi @swathrddy,

 

Change the logic to UnpivotOtherColumns and then you don't need to edit the code every month.

1. Start point

lkalawski_0-1726043939294.png

2. Unpivot Other columns (select columns which you don't want to unpivot and then click on this option):

lkalawski_1-1726043992390.png

3. The result:

lkalawski_2-1726044007964.png

 

Now you can setup a schedule refresh in Power Bi service.

 

 

PBI_SuperUser_Rank@1x.pngMemorable Member | Former Super User
If I helped, please accept the solution and give kudos! 
Linkedin

 

Yessss, It worked. 

 

Thank you for the help @lkalawski 

Idrissshatila
Super User
Super User

Hello @swathrddy ,

 

you can schedule a refresh on Power bi service and the transformations you did in power query will automatically be applied.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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