如何在Power BI中为每天的新数据附加建模而不是覆盖建模查询 [英] How to model queries in Power BI for daily append of new data instead of overwriting

查看:201
本文介绍了如何在Power BI中为每天的新数据附加建模而不是覆盖建模查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试根据网站上发布的数据在Power BI中构建一个简单的报告。
这是我要实现的目标

I'm trying to build a simple report in Power BI based upon data published on a website. Here is what I want to achieve


  1. 该网站发布了该国COVID病例的数据。

  2. 数字只是当前数字,没有任何时间序列。

  3. 我想每天从此网站获取这些数字,并在其顶部的
    上生成一份报告(带有时间序列分析)。

  4. 因此,我获取这些数字(获取数据> Web> URL)并将其输入查询中,然后添加带有时间戳映射的
    a自定义列(M的DateTime.LocalNow()函数)
    并获得具有所需时间戳的数据。

  5. 现在,我想每天刷新此查询,以便获得该查询的每日结果。
    6。正如预期的那样,PBI只是用新数据覆盖现有行,并使用最新时间戳记(
    )(我的自定义列)。

  1. This website publishes data for COVID cases in the country.
  2. The number are just the current numbers, without any time-series.
  3. I want to fetch these numbers from this website daily and build a report on top of it (with time series kind of analysis).
  4. So I fetch these numbers (Get Data > Web > URL) and get this into a query I then add a custom column with a timestmap (M's DateTime.LocalNow() function) and get this data with the required timestamp.
  5. Now I want to refresh this query daily, so that I get daily results in this query. 6. As expected, PBI simply overwrites the existing rows with new data, with the latest timestamp (my custom column).

我尝试了一些操作,例如:-

I tried few things like:-


  1. 创建一个新查询并将数据附加到该查询中,这似乎不起作用,现有数据将被覆盖(也许是我创建新查询的方式)。

  2. 开发了增量刷新功能,它似乎不适合我的用例。

  3. 尝试过其他类似的帖子,似乎没有一个能帮助我解决这个问题。

问题:-


  1. 是否有一种简单的解决方法来规避这一点(第7点),并让PBI附加新数据而不是覆盖现有数据。

  2. 我在上面的第2点是否正确(增量刷新)?

赞赏任何指针。

推荐答案

Power BI中没有简单的解决方法。

There is no simple workaround within Power BI.

Power BI不能用作存储历史数据的数据库。它旨在连接数据并从中创建报告,因此您需要将每日数据存储在外部某个地方。

Power BI is not designed to be used as a database where you store historical data. It's designed to connect to data and create reports from that, so you'll need to store the daily data somewhere external.

有很多存储数据的方法。例如,您可以将它们另存为CSV,保存在Power BI从中加载的文件夹中,也可以将它们写入数据库表并连接到该表。

There are tons of ways to store the data. E.g., you could save them as CSVs in a folder that Power BI loads from or you could write them to a database table and connect to that.

这篇关于如何在Power BI中为每天的新数据附加建模而不是覆盖建模查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆