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
I have written this DAX query but it takes quite a long time to render, is there anyway I can refactor this to return the result on the card visual faster?
postVPP =
VAR currentMonth = DATE(YEAR(today()), month(today()), 1)
RETURN
COALESCE (
CALCULATE (
DIVIDE ( [sumOfVendor], [Total Partners], 0 ),
USERELATIONSHIP ( 'Channel Table'[partner_key], fact_transaction_monthly[transaction_monthly_partner_key] ),
fact_transaction_monthly[transaction_monthly_charge_created_date] >= currentMonth
),
0
Solved! Go to Solution.
Hi, @Anonymous
I don't think this part can be further optimized.
This code is clear, understandable and maintainable enough.
You may need to check your current data model and other referenced mesures.
Best Regards,
Community Support Team _ Easo
Hi, @Anonymous
I don't think this part can be further optimized.
This code is clear, understandable and maintainable enough.
You may need to check your current data model and other referenced mesures.
Best Regards,
Community Support Team _ Easo
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 46 | |
| 40 | |
| 38 | |
| 22 |
| User | Count |
|---|---|
| 178 | |
| 127 | |
| 117 | |
| 77 | |
| 56 |