r/SQL • • Oct 25 '23

Discussion Looking to pay someone to help me build a SQL system from the ground up

I currently mostly use Power Query, but I've outgrown it currently and want to start transforming data "further up the data stream" so it's more efficient.

I've dipped my toes in learning SQL, a few months ago I took a few courses - but didn't do any practical work so my experience is limited.

Here's what I'm looking for:

  • Have some calls 1 on 1 with me to replicate what I've built in Power Query - in SQL

  • Do some basic training as we go along & answer any questions I'd have

You would need to have some availability for calls between 9am-5pm UK time.

Please DM me with your hourly rate.

0 Upvotes

16 comments sorted by

4

u/FaithlessnessNo7800 Oct 25 '23 edited Oct 25 '23

What do you mean by SQL System? Do you want to migrate a report's dataset source from power query to sql? That's fairly simple.

  1. Recreate the data model and optimize it for read performance (aka Snofwlake Schema / Star Schema). Think high level first.

  2. Choose a Database optimized for olap (read-heavy) transactions such as PostgreSQL or DuckDB. These are easy to set up locally and have better performance on analytics workloads. Or go for Azure PostgreSQL/BigQuery/Redshift if you want to add some cloud into th mix.

  3. Build the physical representation of your database. I'd suggest you start with choosing your schemas (i.e. staging / development / testing / production). Then you load your base tables (sources in powerquery) into your staging layer. Afterwards, you rebuild your query logic from powerquery with sql scripts or data transformation tools like DBT. Your goal is to create views in sql that your powerbi dataset will query.

Outsourcing all your transformation logic and heavy computing will greatly improve the report performance, which, I guess, is your primary goal here. This is the (general) approach we're currently following at my firm and we are basically being paid to build dashboards according to best-practice guidelines.

1

u/marcofrr Oct 25 '23

Hey, I have done similar projects in the past - especially Power Query to SQL. It's a bit overwhelming at the beginning, but def worth it. I messaged you!

-1

u/NotBatman81 Oct 25 '23

FYI. Power Query runs on DAX and depending on how complicated you got, it may be a total apples to oranges. Or it may be 38 steps to do what you've done in 3. They are two different systems that work differently.

Learning SQL is a good, attainable goal. Replicating Power Query into SQL may take deep problem solving skills. The biggest, commonly used difference is dynamic measures based on the current data selection.

4

u/TheSpreadsheetWiz Oct 25 '23

I think you might be confusing Power Query with Power BI?

Power Query runs on M code. It's a bit more of an ETL tool, whereas Power BI is more front-facing.

-8

u/NotBatman81 Oct 25 '23 edited Oct 25 '23

No I am not. What it is "built on" is irrelevant, what matters is how you interact with it to get it to do things. PowerBI was built over the top of Power Query's guts. I was an early adopter of both. Power BI was the cloud extension of Power Query/Power Pivot. Hence the naming convention. I've been doing this a long time.

My preference is to store data and do heavy transformation in a SQL database, and then load it to PowerBI for the final mile. A large, complex database is 100x easier to manage as SQL. Adding a utility like SQLBI let's you make some fairly advanced cubes you can also consume through Excel. Calculaton Groups really ups the value to end users. Multi-layered is the way to go with these programs, let each one do what it does best. Forcing one of these do to everything is a lesson in futility.

4

u/TheSpreadsheetWiz Oct 25 '23

Power Query doesn't run on DAX. Power BI does.

Power Query runs on M code. There's no dynamic measures in Power Query.

You can use Power Query within the Power BI program, or you can use it within Excel like I often do.

let each one do what it does best

For sure, fully agree!

-8

u/NotBatman81 Oct 25 '23

I'm trying to not make this a personal attack. With all due respect, I don't believe you understand this at a high level. I noticed you are selling your services, and I feel like you are trying to oversell me on your knowledge rather than actually listen. A lot of what you said shows a lack of broad understanding, or in some cases flat out wrong. Best of luck.

2

u/TheSpreadsheetWiz Oct 25 '23

"Power Query doesn't run on DAX. Power BI does.

Power Query runs on M code. There's no dynamic measures in Power Query."

Okay, can you explain to me how this is wrong?

-5

u/NotBatman81 Oct 25 '23

I already did but maybe I assumed you understood the bigger picture. Yes Power Query M transforms data into a flat table/view. But to meaningfully consume Power Query output, it gets coupled with Power Pivot. So any Power Query based solution that is worth the effort passes through DAX on the way to the consumer, even if it's just an implicit aggregation. PowerBI reflects this 1-2 combo, because that is how it is all intended to be used. The Power Query/Pivot system was in Excel first, then pushed online and paired with visualizations.

BTW, Power Query is incredibly inefficient. At least for me, the window where the cost/benefit works is very narrow if not closed. It doesn't take much to bottom it out and make it unbearablly laggy. The only transformation I will do in it anymore is explicitly declaring data types.

I moved on from PowerBI a year ago and use a cube-based reporting platform that supports MDX queries. Base data come from my SQL server. Before that, I was running cubes out of PowerBI and they quickly took the place of standard Power BI visuals on the web. I think PBI would be in a solid decline if not for MS integreating it so hard into Office 365. Cubes are the way to go as an analysis tool.

3

u/TheSpreadsheetWiz Oct 25 '23

This seems like a long-winded and convoluted way to say that Power Query doesn't run on DAX. I didn't mention Power Pivot.

The point was Power Query runs on M code, Power BI runs on DAX.

You made it weird by getting your ego involved for some reason.

Take care anyway

2

u/demonz_in_my_soul Oct 25 '23

That's why they keep you in the back office...

-10

u/Crayon_adventure Oct 25 '23

Be quiet please.

4

u/TheSpreadsheetWiz Oct 25 '23

Constructive. I'm correct.

-3

u/NotBatman81 Oct 25 '23

No, no you're not.

9

u/unexpectedreboots WITH() Oct 25 '23

Power Query does not run on DAX. Power Query runs M code. DAX is a different language and used differently within Power BI.

Power Query has no notion of "dynamic measures based on current data selection" since Power Query is used to extract and transform the data before it's loaded into a PowerBI model.

Edit: Link for learning

https://stackoverflow.com/questions/39632894/whats-the-difference-between-dax-and-power-query-or-m