This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi all,
I need some help to figure this out. in my table, i have ID and Step Type. Each id can have multiple steps. i want to show yes for each duplicate id if it matches my condition. for example i have the following:
| ID | Step Type |
| 1 | A |
| 1 | C |
| 2 | F |
| 3 | B |
| 3 | C |
I want to add a column that if step = C then it shows "yes" for each ID and "No" if it doesn't.
Expected result should look like this:
| ID | Step Type | Result |
| 1 | A | Yes |
| 1 | C | Yes |
| 2 | F | No |
| 3 | B | Yes |
| 3 | C | Yes |
Can someone please help with this.
Thanks
Hetal
Solved! Go to Solution.
Hi @hpatel24779
You can use DAX formula:
The pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Hi @hpatel24779
You can use DAX formula:
The pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Hi @hpatel24779
Did you download the PBIX file I attached and try to compare it with what you're doing?
If not, it's worth downloading and checking.
If you did, and it’s not working, it probably means the script is not exactly as described in the question.
Please save your PBIX file to some public cloud and share it via a link, excluding sensitive data.
Sorry jumped the gun, this is actually not working as intended
Create a calculated column
Result =
IF(
CALCULATE(
COUNTROWS(FILTER('Table', 'Table'[ID] = EARLIER('Table'[ID]) && 'Table'[Step Type] = "C")),
ALLEXCEPT('Table', 'Table'[ID])
) > 0,
"Yes",
"No"
)
💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Hi @Kedar_Pande, i tried your method but when entering the line countrows(filter('Table','Table'[ID] = Earlier('Table'[ID], i don't see the table after earlier( if this makes sense?
Please share a simplified version of your PBIX file (in English) without sensitive data. You can upload it to a public cloud service like OneDrive, Google Drive, or Dropbox and share the link. This will help in understanding your data structure and the issue, allowing for more precise guidance.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 26 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 37 | |
| 32 | |
| 25 | |
| 23 |