Forum Discussion
Desktop refresh vs gateway refresh on service
Hi aj1973
Many thanks for your suggestion - I appreciate your help. My use of DAX for the transformation of some of the data was expedient for two reasons. I had used that successfully in the past and it was quicker to be able to text-edit a formula to drop into 'create table' commands than to go through the process of adding transformation steps in Power Query.
However, expedient isn't always best!
As the removal of DAX seemed to help in the instance on that other thread I deleted all my tables created in DAX. As a test and before trying to recreate the transformations in Power Query, I saved and published the dataset just with all DAX removed. Once again, the desktop refresh went fine but the refresh in the service hogged resources and timed out.
I cannot easily regress the Gateway version and I cannot change the SQL Server version. I have checked our Gateway and it is not the current version. I have considered updating the Gateway to the current version but it is demanding a .NET Framework version update. That's well above me, so I've referred that on.
I'm keeping an open mind. I'm far from expert with Power BI, but I'm inclined to think if the refresh in Desktop can be successful and relatively quick that I can't have made too much of a mess of my methods of importing and transforming data. Our Gateway version is 3000.66.4 (November 2020 Release 1) so we're not far out of date on that. Whether updating it to 3000.77.7 (which seems to be the current version) will be significant, I don't know, but it seems worth trying. I'll update the thread with actions/outcomes as they unfold.
Cheers
mmilegal
Hi mmilegal
it seems like your model is facing a version compatibilty issue. Please try to use Dataflow as connection mode and then re build a Sample report out of 2 tables(for example), then publish it. Logically when you try to connect to the SQL server through Dataflow, the Gateway is needed and a refresh is asked for. If it works then you know what to do.
Please let me know.
- mmilegal5 years agoFrequent Visitor
Hi aj1973
I've not used dataflows until now. I'm trying to study up on that now. I know I'll be limited to some degree because I understand that merging tables in the dataflow requires a premium workspace, which we do not have.
Progress might be a little slow from here but I will work on your suggestion. Please forgive me if it takes a few days for me to report back on what I've tried and how it turned out.
Cheersmmilegal
- aj19735 years ago
Community Champion
Hi mmilegal
No, you don't need premium capacity to use Dataflows. Premium capacity is for AI and ML capabilities.
To make it simple for you to understand, The Dataflow uses the Gateway to connect to your SQL server 2012, if it works then good. After you cennect to your source you will be using Power Query Online Platforme ( just like in your desktop) to ETL your data. After you prepare your data and refresh it you can then call it in your desktop and build the report. after that you just publish it and you all be good to go.
Let me know for more details
- mmilegal5 years agoFrequent Visitor
Hi aj1973
I'm embarrassed to keep missing the point - I suspect I am a bit like a kid who belongs in the beginner class who is trying to ask sensible questions in the advanced class! That's probably fairly accurate, I'm afraid! I've read a fair bit of content about dataflow vs dataset and watched a number of the ' guy in a cube' videos but I've ended up feeling like my only chance to grasp it was to try some practical implementation that relates to my real-world requirements. Unfortunately, I think my 'in at the deep end' approach has, this time, been more sink than swim.
Experiment 1
I tried a test dataflow with two of the tables from my old dataset. To try to test some of what I knew I'd need, I included the tables used in Example1 of my original post but decided to try only one of the three pivots. When I tried to edit the dataflow (in what I assume is the Power Query Online Platform - it looks near-identical to Power Query in Desktop) to merge the 2 tables, I got the message 'Computed tables require Premium to refresh. To enable refresh, upgrade this workspace to Premium capacity, or remove this table.'Experiment 2
At that point, I considered that I was only supposed to use the Dataflow to pull the source data so I saved the Dataflow without any transformation steps then opened a fresh pbix in the desktop and used the dataflows connector in the Get Data dialog in the desktop. In Desktop, I recreated the steps to merge, filter and pivot the data. When I applied the changes, the refresh began and was obviously going to take a while. I timed the refresh as processing around 950 rows per minute. The data being processed measures rows in the millions so I abandoned that.Experiment 3
My last throw of the dice was to replicate the merge/pivot steps in the online editor of the dataflow then create a new pbix in the Desktop and refresh the data in the Desktop. I kind of suspected that was a waste of time and I wasn't terribly surprised to see that the structure imported matched the output of the pivot that I had saved in the Dataflow but there was no data, presumably because the Dataflow was not refreshed for the reason above.Do those three experiments make sense?
Cheers
mmilegal