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!
Hi everyone, I have a dax query that calculates the jobturnaround time. However, it took 7191ms to load using the matrix table. Could someone help out to refactor it? Thanks! 🙂
Here's the measure:
Job Turnaround Time (Days) =
CALCULATE (
AVERAGE ( Jobs[Days Between Start Date & Completed Date] ),
USERELATIONSHIP ( 'Date'[Date], Jobs[Jobs Job Completed Date] ),
USERELATIONSHIP ( 'Unique Staff'[StaffID], Jobs[Job Manager ID] ),
USERELATIONSHIP ( Clients[ID], Jobs[Jobs Job Client ID])
) + 0
Here's the performance analyzer snapshot.
Solved! Go to Solution.
Hi,
If we want to see only those line items in the visual where the measure returns a non 0 value, then why are we even using an IF() or a COALESCE(). Why not just use this
=CALCULATE(AVERAGE(Jobs[Days Between Start Date & Completed Date]),USERELATIONSHIP(Jobs[Jobs Job Completed Date],'Date'[Date]),USERELATIONSHIP(Jobs[Job Manager ID],'Unique Staff'[StaffID]),USERELATIONSHIP(Jobs[Jobs Job Client ID],Clients[ID]))
Hi,
Is this measure any faster:
Job Turnaround Time (Days) =
COALESCE(CALCULATE(AVERAGE(Jobs[Days Between Start Date & Completed Date]),USERELATIONSHIP(Jobs[Jobs Job Completed Date],'Date'[Date]),USERELATIONSHIP(Jobs[Job Manager ID],'Unique Staff'[StaffID]),USERELATIONSHIP(Jobs[Jobs Job Client ID],Clients[ID])),0)
not really. I guess the bottleneck was when I applied filter into it (removing zeros). There comes the slow matrix.
Hi,
If we want to see only those line items in the visual where the measure returns a non 0 value, then why are we even using an IF() or a COALESCE(). Why not just use this
=CALCULATE(AVERAGE(Jobs[Days Between Start Date & Completed Date]),USERELATIONSHIP(Jobs[Jobs Job Completed Date],'Date'[Date]),USERELATIONSHIP(Jobs[Job Manager ID],'Unique Staff'[StaffID]),USERELATIONSHIP(Jobs[Jobs Job Client ID],Clients[ID]))
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 |
|---|---|
| 55 | |
| 52 | |
| 41 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 107 | |
| 104 | |
| 40 | |
| 33 | |
| 25 |