0
votes

Is there any reason for using DAX measure such as SUM(Column1) instead of dropping the Column to table visual and then configuring the aggregation method in the table visual? Column1 contains numeric values only. I can see in Performance Analyzer that calculations take the same amount of time. Is there any scenario when DAX measure would be superior than using a numeric column directly? I have tested it on a larger model, using slicers and filters, and I consistently got the same duration for both methods.

enter image description here

When I copy DAX query code to DAX Studio I can see the drop Column method is expanded to CALCULATE(SUM. So it seems that if you just need SUM, then no need to create measure in DAX.

enter image description here

1
One possible scenario I can think of is if you try to use tabular editor for dynamic string formatting on the SUM through calculation group, it will not work. Tabular Editor only works with explicit measures.smpa01

1 Answers

1
votes

The difference here is explicit vs implicit measures. Explicit measures are the ones you define. Implicit measures are the ones automatically defined by Power BI.

In terms of performance, there is no difference. The engine is doing the same thing in both cases.

However, it's generally considered best practice not to use any implicit measures for a variety of reasons such as:

  • Explicit measures are reusable (useful as building blocks for more complex measures) and can be organized into display folders.
  • Implicit measures won't show up in external programs like Analyze in Excel.

See these articles for further information:

Explicit Vs Implicit DAX Measures in Power BI

Understanding Explicit vs Implicit measures in Power BI

Related Posts:

Efficiency of measures in power bi

RANKX() issues in DAX, PowerBI

https://community.powerbi.com/t5/Desktop/Implicit-versus-explicit-measures/td-p/1196134