Forum Discussion

Rutu_28's avatar
Rutu_28
New Member
7 months ago
Solved

How to create last 5 day rolling line graph, without date column?

Question: How to create a rolling last 5 days line chart in Power BI when the source data has no date column? I have a Power BI report with a table that contains a Resolution Status column (Open, ...
  • danextian's avatar
    7 months ago

    Hi Rutu_28 

    Power BI captures only the current state of the data at refresh time and does not retain historical versions. To keep snapshots, a Power Automate flow can be scheduled to run a query against the Power BI dataset (optionally adding a Today column and including it in the query), save the results as a CSV file in a SharePoint folder with a timestamp in the filename, and then use that SharePoint folder as the data source. The flow should be scheduled to run after the semantic model refresh has completed, based on an estimated refresh window. Note: you wiill need to convert the timestamp to your local timezone if your  timezone isnt UTC.

    Try this:

    https://www.matthewdevaney.com/power-automate-run-a-query-against-a-power-bi-dataset/