简体   繁体   English

Power BI - 在刷新数据之前将数据复制到新列

[英]Power BI - Copying data to new column before refreshing data

This is what I hope to be a very simple issue, I'm just having a hard time putting the right search terms together in order to find the answer.我希望这是一个非常简单的问题,我只是很难将正确的搜索词放在一起才能找到答案。

Basically, I want to preserve the data from the last refresh before the data is refreshed again, in order to compare the difference.基本上,我想在再次刷新数据之前保留上次刷新的数据,以便比较差异。

Example:例子:

I have a basic web scrape that runs off and grabs the latest stock price for Microsoft:我有一个基本的 web 抓取,它运行并获取微软的最新股价:

基本抓取微软股价

What I want to be able to do during the refresh is to first copy the current value (283.85) to a new column and then refresh the data, so that I have a side by side current and previous price.我希望在刷新期间能够做的是首先将当前值 (283.85) 复制到一个新列,然后刷新数据,这样我就可以并排显示当前价格和之前的价格。

Really tried to find an answer, but I don't think I'm using the correct terminology.真的试图找到答案,但我认为我使用的术语不正确。

I have never used this method.我从来没有用过这种方法。 Would it be easier to add a date column to your current table and make it your record table?将日期列添加到当前表并使其成为记录表会更容易吗? That way you can do a comparison and visuals from your data.这样你就可以从你的数据中进行比较和视觉化。

If you really want separate tables you could update your table with the date column and then write a table query to get your latest stock price according to date如果你真的想要单独的表,你可以用日期列更新你的表,然后编写一个表查询来根据日期获取最新的股票价格

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM