Forum Discussion
Anonymous
3 years agoNot applicable
Optimize Dax Code
Hi, I want to optimize below code, can you help me which DAX Functions should i use to optimize my dax code. VAR Test = Format(COALESCE(CALCULATE(SUM(Sales[Revenue]), filter(Sales,Sales[produ...
- 3 years ago
Anonymous
Please try following version. It's important to better understand the data model before performaing any DAX optimization.VAR Test = FORMAT ( COALESCE ( CALCULATE ( SUM ( Sales[Revenue] ), KEEPFILTERS ( Sales[product_status] IN { "A", "C", "Z", "1", "" } ), KEEPFILTERS ( Sales[Product] <> BLANK () ), KEEPFILTERS ( Sales[Sales_Date] IN CALENDAR ( "2022-04-01", "2022-04-30" ) ) ), 0 ), "general number" )
Fowmy
3 years agoSuper User
Anonymous
USe DAX Studio: Analyzing Performance Analyzer trace in DAX Studio - YouTube