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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jnixon
Helper III
Helper III

Get Power BI Dataflow csv from Azure Blob Storage

 

model.json@snapshot=2021-12-29T13:43:11.8221557Z
model.json@snapshot=2021-12-29T15:42:47.6820754Z
model.json@snapshot=2022-01-02T13:57:44.4572616Z 

 

Then I plan to set that file name to a variable and use as a parameter in a Get Blob Content action. 

 

I should also note that the output from the Lists Blob V2 action is a JSON object, which I then pass to a Create CSV table that generates the lines pasted above.  I need to get the JSON member for the most recent datetime (in red below), so maybe it is not necessary to make the csv first.  How can I extract/query the member with the recent datetime?  Here is the JSON output from the List blobs action:  

[
  {
    "Id""xxxxx==",
    "Name""model.json@snapshot=2021-12-29T13:43:11.8221557Z",
    "DisplayName""model.json@snapshot=2021-12-29T13:43:11.8221557Z",
    "Path""/powerbi/Azure test/Excel Datasource via Gateway/model.json.snapshots/model.json@snapshot=2021-12-29T13:43:11.8221557Z",
    "LastModified""2021-12-29T13:43:11Z",
    "Size"1267,
    "MediaType""application/octet-stream",
    "IsFolder"false,
    "ETag""\"xxxxx\"",
    "FileLocator""xxxxx=="
  },
  {
    "Id""xxxxx==",
    "Name""model.json@snapshot=2021-12-29T15:42:47.6820754Z",
    "DisplayName""model.json@snapshot=2021-12-29T15:42:47.6820754Z",
    "Path""/powerbi/Azure test/Excel Datasource via Gateway/model.json.snapshots/model.json@snapshot=2021-12-29T15:42:47.6820754Z",
    "LastModified""2021-12-29T15:42:47Z",
    "Size"1587,
    "MediaType""application/octet-stream",
    "IsFolder"false,
    "ETag""\"xxxxx\"",
    "FileLocator""xxxxx=="
  },
  {
    "Id""xxxxx==",
    "Name": "model.json@snapshot=2022-01-02T13:57:44.4572616Z",
    "DisplayName""model.json@snapshot=2022-01-02T13:57:44.4572616Z",
    "Path""/powerbi/Azure test/Excel Datasource via Gateway/model.json.snapshots/model.json@snapshot=2022-01-02T13:57:44.4572616Z",
    "LastModified""2022-01-02T13:57:44Z",
    "Size"1587,
    "MediaType""application/octet-stream",
    "IsFolder"false,
    "ETag""\"xxxxx\"",
    "FileLocator""xxxxx=="
  }
]
2 REPLIES 2
jnixon
Helper III
Helper III

Thanks Liang, I appreciate the reply.  My question was not well-structured and clear, I'm sorry. I was trying to get the csv files from a dataflow entity stored in Azure Blob Storage and copy them to a OneDrive cloud location.  I found a way to do this using Power Automate.  There is also a way to do this with Power BI, but it involves embedding a R or Python script into the Power Query to write these files to a local drive and then synching to the cloud.  Not reliable enough.

Thanks again for you thoughts on it. 

V-lianl-msft
Community Support
Community Support

Hi @jnixon ,

 

To do this we first need to build a complete URL for the file. Build a formula that uses the URL to the container, the filename, and the querystring to create a complete URL, and name the field "FileURL"

Then you can define a parameter to get the specified content. Please Refer to:

https://www.sqlservercentral.com/blogs/connecting-to-azure-blobs-in-power-bi 

https://powerbi.microsoft.com/de-de/blog/deep-dive-into-query-parameters-and-power-bi-templates/ 


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.