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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
PP_Freshman
New Member

Track Weekly Trend

Hi!

 

Objective

  • Track weekly trends.
  • Table 1: updated with data for the current week.
  • Table 2 (i.e. the 'historical table): dynamic, only contains data from the previous week.
  • Compare values from the current week vs values from the previous week.

Context

  • Table 1: update/overwrite data weekly
    • Data Source: Excel (file saved on SharePoint).
  • Automate the below process.

Example of Required Output

Week 1

  • Table 1: updated with new data.

Week 2

  • Table 2 (i.e. the 'historical table') captures data as-is for Week 1 from Table 1.
  • Table 1: updated with new data.

Week 3

  • Table 2 (i.e. the 'historical table') overwrites Week 1 data with Week 2 data from Table 1.
  • Table 1: updated with new data.

Week 4

  • Table 2 (i.e. the 'historical table') overwrites Week 2 data with Week 3 data from Table 1
  • Table 1: updated with new data.

The above is then repeated..

Any support is much appreciated!

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @PP_Freshman ,

I'm assuming that the historical data won't change and you can try:
Table1 --> References the combined table and removes unneeded columns:

vcgaomsft_1-1709271774805.png
Filter out the latest data:

vcgaomsft_2-1709271815162.png

Table2 -->  References the combined table and removes unneeded columns --> Filter out the second largest number of weeks:

vcgaomsft_3-1709271951750.png

File attached for reference.

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

View solution in original post

1 REPLY 1
v-cgao-msft
Community Support
Community Support

Hi @PP_Freshman ,

I'm assuming that the historical data won't change and you can try:
Table1 --> References the combined table and removes unneeded columns:

vcgaomsft_1-1709271774805.png
Filter out the latest data:

vcgaomsft_2-1709271815162.png

Table2 -->  References the combined table and removes unneeded columns --> Filter out the second largest number of weeks:

vcgaomsft_3-1709271951750.png

File attached for reference.

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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