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.
Solved! Go to Solution.
@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"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous
USe DAX Studio: Analyzing Performance Analyzer trace in DAX Studio - YouTube
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@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"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Fowmy Thanks for reply, This is working good, but one more thing i want cross check, what is execution time of both DAX queries, how can we check this ?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
45 | |
25 | |
19 | |
16 | |
8 |
User | Count |
---|---|
73 | |
50 | |
45 | |
20 | |
17 |