Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |