Forum Discussion

munindra's avatar
munindra
Frequent Visitor
1 year ago
Solved

Sementic Model refresh for cache

i created a PBI report using sql server using direct query method and published it into microsoft fabric.Although pbi report is working fine but after publishing inside the fabric the sementic model ...
  • freginier's avatar
    1 year ago

    Hi there! 

     

    You could use the Use REST API to Trigger a Refresh. Power BI allows refreshing DirectQuery Cache using the Power BI REST API. 

    Use the refresh dataset API: POST https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/refreshes (This forces Power BI to clear and refresh cached results.) 

    Heres how you can do this: 

    - Get your dataset ID from the Power BI workspace.
    - Set up an Azure Logic App or Power Automate flow to call the API at your desired frequency.

     

    Hope this helps!

    😁😁