Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Bonjour,
Je cherche à calculer sur une table l'activité ou non d'un magasin en fonction du chiffre d'affaire qu'il a rapporté durant un mois.
J'ai donc utiliser la formule suivante pour le mois M dans une table 'Calcul' contenant le 'CIP' qui est relié à la table 'Pharmacien' :
Solved! Go to Solution.
Hi, @LAPSA_LAB
I'd like to suggest you refer to the following article about how to avoid circular dependency.
Avoiding circular dependency errors in DAX
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @LAPSA_LAB
I'd like to suggest you refer to the following article about how to avoid circular dependency.
Avoiding circular dependency errors in DAX
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @LAPSA_LAB ,
I see that in your both DAX expressions there is one difference:
Mois_M = IF ( CALCULATE (SUM (sales_order [V_sous_total_HT]), sales_order [status] <> "canceled", Pharmacist [CIP], MONTH (sales_order [created_at])> MONTH (EDATE (TODAY (), -1)), YEAR (sales_order [created_at]) = YEAR (TODAY ()))> 0, "Active", "Inactive")
Month_M-1 = IF (CALCULATE (SUM (sales_order [V_sous_total_HT]), sales_order [status] <> "canceled", Pharmacist [CIP], MONTH (sales_order [created_at]) = MONTH (EDATE (TODAY (), -1) ), YEAR (sales_order [created_at]) = YEAR (EDATE (TODAY (), -1)))> 0, "Active", "Inactive")
Trying to understand the GREEN part highlighted above. In this you are using EQUAL sign.
In the RED part highlighted above, you are using GREATER THAN sign, which is checking a condition.
So, is you 2nd DAX correct for M-1 ?
Thanks,
Pragati
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.