Forum Discussion

BugmanJ's avatar
BugmanJ
Icon for Helper V rankHelper V
2 years ago

How to avoid the problem of not being able to refresh Calculated Tables off Direct Query Tables

Good Afternoon All,

Having fallen for the same problem I have seen many people suffer from on here, I am asking what is the best solution to avoid this?

Problem
You have a Dataset you are accessing via DirectQuery. From this directquery, you build some summerised tables which you then build your PowerBI dashboards from. You can refresh just fine in the Desktop software, great! But if you upload to the PowerBI Service and try to set this to a scehduled refresh, it will fail. In short, you can not have a refresh, in the powerbi service if you are using calculated tables that refernence a table in Direct Query.

Solutions?
So what are peoples solutions for this? My thoughts so far:

 

1) Calanders - If your building a calander off a date, either hard code the date or DAX calculate a time reference. Neither of these are useful if your data is a constantly moving target

 

2) Use Power Automate to create a CSV which you then reference. Does work, but my current one is timing out because there are just too many rows to process in the time given

3) Create a PowerBI dataset which doesnt use DQ. Doable but wow what a filesize.

4) Don't use calcualted tables, not really practical for large datasets when you need to minimize the amount of data you are pulling from the cloud

 

5) Some people have noted changing the person whom owns the dataset will work. Tried, it doesnt work for me or a few others i have also seen.

 

None of these are great options. Tableua doesn't have this problems so why is PowerBI so behind the times on this? Anyone come up with a better way or just a way in general??


Regards
J

8 Replies

  • Problem
    You have a Dataset you are accessing via DirectQuery. From this directquery, you build some summerised tables

    That's your problem all right.

     

    Have you considered using the Analysis Services connector against the dataset semantic model?  That will allow you to import tables.  Not optimal but a good enough compromise.

    • BugmanJ's avatar
      BugmanJ
      Icon for Helper V rankHelper V

      How would I do this? I believe from what I have read online that analysis devices would only connect to a server and not a semantic model?

      • lbendlin's avatar
        lbendlin
        Icon for Super User rankSuper User

        You can connect to any semantic model as if it were an Analysis Server since a semantic model is pretty much an instance of SSAS Tabular.

         

        In your workspace navigate to the semantic model's settings page.  Go to the Server setting section and copy the connection string

         

        Use that connection string in your new file.  It will then give you the option to connect live or via import mode, and you can specify your own DAX query if you want.