Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hello everybody, I hope you're all fine and in good health.
I haven't been able to achive what I´m looking for: I need to identify which codes are unique for all the the years in analysis, each year. Please allow me to clarify: let´s consider the first code (highligthed in yellow), I´ve put a mark (1) to show the year where the code appears, whereas a blank space means the code doesn´t appear in that year. In this case it only appears in 2019, meaning it´s unique AND is located in 2019.
The second code, for example, appears in 2019, 2020 and 2021, so it´s not unique. The third code from the bottom up only appear in 2021, so it´s unique AND is located in 2021.
Under this reasoning, I need to identify, for each year, those codes that are unique throught all 3 years. Maybe a measure would help here, something like filtering the codes by year AND by "unique", I´m not sure.
Thanks in advance for your help.
Diego
Solved! Go to Solution.
Hi @diegotarquino ,
See if the attached is what you need.
There is a measure that counts the distinct records per year and then a second one counts the unique records, so 1 occurrence in 3 years.
Did I help you today? Please accept my solution and hit the Kudos button.
Hi,
Please show the exact result that you are expecting.
Thank you Ashish, @davehus already helped me out😀
Thank you for your interest in helping me.
Regards,
Diego
Hi @diegotarquino ,
Can you provide a sample of your data so that I can see the structure of it?
Did I help you today? Please accept my solution and hit the Kudos button.
Absolutely, please feel free to check it out:
Thank you!
I have not access .:)
Wooops! I´m really sorry, please try this one:
Hi @diegotarquino ,
See if the attached is what you need.
There is a measure that counts the distinct records per year and then a second one counts the unique records, so 1 occurrence in 3 years.
Did I help you today? Please accept my solution and hit the Kudos button.
Thank you very much for your help, thanks to it I was able to solve the problem I had.
Best,
Diego
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 31 | |
| 28 | |
| 24 | |
| 23 | |
| 19 |
| User | Count |
|---|---|
| 44 | |
| 32 | |
| 18 | |
| 17 | |
| 17 |