Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello all,
I have a problem with a DAX column. The issue is that it is bringing in the unwanted results. Here is an example: If the Number which is an "AccountNumber" is the same within the group and the columns 4A, 4B, 5A and 5B say ANYTHING other than "Complete" than it should say "KEEP" else "REMOVE. Because the below table has "Complete" and the field "Numbers are all the same, it should say "REMOVE.
With my initial DAX formula, I see that it is not correct, see below examples. Any assistance you can provide, I would greatly appreciate. Thank you in advance! 🙂
Aother example:
Hi @Anonymous ,
You can try formula like below:
NewColumn =
IF(
COUNTROWS(FILTER(YourTable,
YourTable[nber] = EARLIER(YourTable[nber]) &&
(
YourTable[4A Status] <> "Complete" ||
YourTable[4B Status] <> "Complete" ||
YourTable[5A Status] <> "Complete" ||
YourTable[5B Status] <> "Complete"
)
)) > 0,
"KEEP",
"REMOVE"
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hello v-Kongfanf-msft,
Thank you, but that didn't work. It yielded the following results. It says "KEEP", but it should say "REMOVE" because within that group of Numbers which is an Account Number, they say "Complete" across the rows of 4A, 4B, 5A, and 5B.
Hi @Anonymous ,
Pls provide test data and detail desire result.
Best Regards,
Adamk Kong
Hi v-kongfanf,
Here is some test data: This data is coming from a report that has counted the number of "Completes per Acct#. It seems like whatever DAX I create wants to count from the original report. I just need to formula to affect the current table not the detail table...
Now, what I need is the DAX that says if any of the numbers across this table have a zero there, then "KEEP", "REMOVE". Simple enought right. NO, not for me...its been very hard to make this happen. If you can assist with this I would be most grateful! 🙂
Acct | Sum of 4A Cass CT | Sum of 4B Cass CT | Sum of 5A Cass CT | Sum of 5B Cass CT | KEEP OR REMOVE |
1234 | 8 | 8 | 7 | 7 | REMOVE |
1526 | 1 | 1 | 1 | 1 | REMOVE |
6523 | 1 | 0 | 1 | 1 | KEEP |
8598 | 2 | 2 | 2 | 2 | REMOVE |
9988 | 3 | 1 | 2 | 2 | REMOVE |
User | Count |
---|---|
17 | |
17 | |
14 | |
13 | |
13 |
User | Count |
---|---|
17 | |
14 | |
13 | |
10 | |
8 |