cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Partisan
Post Partisan

comparing different versoins of a database table

Hi,

 

I am dealing with a database table that can change daily (records can be updated, as well as added and deleted). My users will want to be able to do comparisons today versus yesterday, today versus last week and today versus last month.

 

I guess I need to import the data each day and add a column with the datestamp of the import. But I don't see how to do that automatically. Please could you tell me how to go about automating that process?

 

Thanks,

 

CM

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: comparing different versoins of a database table

@CloudMonkey My personal opinion would be to build the process in your database. Snapshot the table as it is, then create a process that will add new rows, and update existing rows depending on if the data was deleted or updated.

Status column, change date, etc can be the additional columns. Then Power BI just always looks at the table, and you have a process that is tracking the changes within it. I'm not aware of any way to do the diff in power bi.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG
Highlighted
Super User IV
Super User IV

Re: comparing different versoins of a database table

Agree with @Seth_C_Bauer. Even if you could automate the process in PBI, then PBI would not be able to store this data in the pbix accordingly.

 

If (for some reason) you cannot adjust in your database, you could create the additional fields in PBI and use the R-extension to create a csv-export. (Using Powershell and task automation should give the ability to automate this process, but it's pretty hacky)

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors