I have two measures which give different results, yet as far as I can see they are fundamentally identical. Grateful for any thoughts. (Note, although the code snippets say PowerQuery they're actually DAX measures in PowerPivot)
The first measure returns 3325 and is defined as:
The second returns 3294 and is defined as:
with [CountAllIssued] defined as:
My reading of these measures is that fundamentally the CountApproved and CountRACIisA are identical. However, if I remove qryDDM[RACI]="A" from [CountApproved] it makes no difference , whereas if I remove it from [CountRACIisA] the result is 3325. Which suggests that the qryDDM[RACI]="A" is not being considered in the filter context of [CountApproved].
I'm confused.
Regards
The first measure returns 3325 and is defined as:
Power Query:
CountApproved=CALCULATE(DISTINCTCOUNT(qryVault[Babcock Doc No]), qryDDM,
ALL(qryDDM[RACI]), qryDDM[RACI]="A",
qryVault[Issued Date]>0,
qryVault[Status]<>"Superceded",
qryVault[Status]<>"Obsolete"
)
The second returns 3294 and is defined as:
Power Query:
CountRACIisA=CALCULATE([CountAllIssued], ALL(qryDDM[RACI]), qryDDM[RACI]="A")
with [CountAllIssued] defined as:
Power Query:
CountAllIssued=CALCULATE(DISTINCTCOUNT(qryVault[Babcock Doc No]), qryDDM,
qryVault[Issued Date]>0,
qryVault[Status]<>"Superceded",
qryVault[Status]<>"Obsolete"
)
My reading of these measures is that fundamentally the CountApproved and CountRACIisA are identical. However, if I remove qryDDM[RACI]="A" from [CountApproved] it makes no difference , whereas if I remove it from [CountRACIisA] the result is 3325. Which suggests that the qryDDM[RACI]="A" is not being considered in the filter context of [CountApproved].
I'm confused.
Regards