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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
i'm beginner in power bi et trying to calculate delays between three dates of three different table.
Each "n° op" may have severals "commandes" and each "commande" may have severals "reception". I'd like to calculate the mean delay between "date de commande" and "date de mad finale", and "date de mad finale" and "date de reception". The "date de mad finale" is unique per "n° op".
My mesures :
Could you please help ?
You could try
Delay MAD-Commande = AVERAGEX(Commandes,
DATEDIFF( Commandes[Date de commande], RELATED(MOE_final[Date de MAD]), DAY)
)
Delay Reception - MAD = AVERAGEX(Receptions,
DATEDIFF( RELATED(MOE_Final[Date de MAD]), Receptions[Date de reception], DAY)
)
Thank you for your help, but i doesn't seem to work, something still goes wrong
Those all have the same No OP, so they would have the same average for MAD- commande. For the other one, you may need to swap the order of the dates in DATEDIFF
The problem is, for exemple, the first op_0012 has only one "commande", i don't know why it shows all the others
which table is No Commande - No Poste in the visual coming from, it seems to exist in 2 tables in the model?
It comes frome "Commandes" table, but i tried with the one of "Receptions" table, nothing changed.
Is it possible to share a PBIX with any confidential information blanked out?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!