Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all
ive been hired to lead a team in BI & Analytics, the current team use SQL to create all measures and use PowerBI as visualization tool, and rarely use DAX for that, saying that its "better" but im not convinced
also, the DW is on ORACLE and we use ODI for transformation, so no powerquery nor dataflows nor shared datasets
so can you please adivse if this is the best practice to use SQL rather than DAX, and whats the best practice here
Solved! Go to Solution.
My view is you do all *necessary* transformations in SQL, and then write measures in Power BI to do the calculations. You said your team does everything in SQL and avoids measures - that is the difference between the two. My view is you are better to shape the tables in SQL if you have pros that can do this, rather than do it in Power Query. You should generally load the lowest level of detail needed into PBI and do not preaggregate the data (something SQL pros love to do). Hope that is clearer.
This is a huge topic. Power BI (import mode) is a model based tool. You build a model (typically star schema) and write measures that work together with the model to be an extensible reporting tool. The objective is to minimise the need for new queries each time there is a new need. It is not best practice to do the work in SQL and use PBI for visualisation only. In addition, some things cannot be done in queries in SQL. Eg, calculating the % margin for any user selection of products can only be done in a measure.
in my experience, people that take this approach are comfortable with what they know and are yet to embrace the unknown.
I think it is fine (Even preferred) to do any transformations possible in SQL. PQ is there for when that is not possible.
Hi Matt
thanks alot for the reply
you got me confused, in the 1st paragraph you said exactly the steps i do in every project, or even when i do training, and the same feelings i had that they work with what they are comfortable of, and its the culture im trying to change.
But you said that its not best practice to do all the work in SQL then, in the end of your message, you said it's preferred to do it in SQL, did you mean transformation to be done in SQL and ODI, but model building and measures to be done in PBI?
appreciate your help
P.S im a fan of your website and your channel 🙂
My view is you do all *necessary* transformations in SQL, and then write measures in Power BI to do the calculations. You said your team does everything in SQL and avoids measures - that is the difference between the two. My view is you are better to shape the tables in SQL if you have pros that can do this, rather than do it in Power Query. You should generally load the lowest level of detail needed into PBI and do not preaggregate the data (something SQL pros love to do). Hope that is clearer.
this is crystal clear sir, seems we need to build confidence in DAX for those pros
thanks alot
i totally agree with you, DAX has its learning curve
i started working on dax since PowerPivot came up and still learning, but what I found is that it needs some mind shift in how the measures are been written and iterated
i always follow SQLBI for updates and more DAX explanation, let me see if i can book some courses online for my team donw the road, because as you said, writing DAX in a poorly way can affect the performance a lot, we used to learn it by trial and error then optimize
I offer instructor led training into all time zones around the world if you are interested. https://exceleratorbi.com.au/learn-power-bi-from-an-industry-expert/
if you want to see what people think about my teaching style, read my book reviews on Amazon.
https://www.amazon.com/product-reviews/B079G45FS9/ref=acr_dp_hist_5?ie=UTF8&filterByStar=five_star&r...
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |