Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Artefact
Helper II
Helper II

Replace all DAX fromulas to SQL code

Hello,

Is it a good idea to delete all existing DAX commands in a Power BI dashboard environment and replace them with SQL code (in SQL server)?

Is this much easier to maintain and do I keep the same flexibilty (drilling, filtering, analysing) in my reports?

 

Thanks

2 REPLIES 2
amitchandak
Super User
Super User

@Artefact ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello Amitchandak,

I can't give you an example . It's about the global priciple : Make a dashboard without any DAX, but do all calculations in SQL in SQL server, where SQL server is the source for the dashboards. So for example (there you go....) 
eg "Calculate[profit];Company="Acme"     -> write SQL code to get the same result
eg "SUMX[Sales];sales[profit] * sales[cost]  -> write SQL code to get the same result

and so on.
Does it make sense to write all calculations in SQL?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.