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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors