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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PaulMac
Helper IV
Helper IV

Record and Store Values From One Table to Another

Hi

 

I have been stuggling to find the right keywords to search online that would give me what I am looking for.

 

Here is my scenario. 

 

I have a table (we'll call SourceTable) that is comprised of one value. This provides the number of active customers and is connected via an SQL query that counts the volume of distinct customer numbers and returns as a single value.

This figure is fluid and changes daily when the SQL table refreshes but I would like to keep a record of the volumes each day for trend analysis purposes.

 

What I am asking for is help to build a HistoricData table that pulls data from SourceTable and appends them to the bottom of the HistoricData table with the date and customer volume for that day.

I'm sure this can be achived and I've no doubt the smart and wonderfull people on this forum would be able to provide a simple solution.

 

Any and all help is appreciated.

 

Kind regards

Paul

3 REPLIES 3
v-yingjl
Community Support
Community Support

Hi @PaulMac ,

Agree with @ BA_Pete, Power Query is a tool which can transform data as your need before you import data tables into Power BI Desktop, refer: Power Query Editor .

 

It is not supported and not a media to store history data in it, each time when you click the refresh button in Power Query editor, it would send queries to the data source and get the latest data.

 

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

AlexisOlson
Super User
Super User

@BA_Pete Is correct. Power Query is not the right tool for this job.

 

Similar questions get asked frequently (see links below) but the answer is that this is not something that Power BI is designed to do. Power BI is intended to read and visualize data, not be a repository for storing your data. A database is a more appropriate tool for that.

 

Update Power BI historical data daily

Store and "freeze" column data prior refresh

Maintain historical Data

BA_Pete
Super User
Super User

Hi @PaulMac ,

 

Power Query is a mash up tool, not a data warehouse, therefore the refresh process is as follows:

Wipe all existing data > Import current data from source > Perform transformations.

As such, PQ doesn't have certified capability to retain historical data.

 

I would recommend either:

 

1) Have a SCD table stored proc built on your SQL Server that runs daily.

2) Look into Incremental Refresh in the PBI Service:

https://docs.microsoft.com/en-us/power-bi/connect-data/incremental-refresh-overview 

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




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 MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors