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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 ?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 16 | |
| 10 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 26 | |
| 17 | |
| 14 | |
| 11 | |
| 10 |