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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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 ?
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 19 | |
| 11 | |
| 10 | |
| 6 | |
| 6 |