Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
diegotarquino
Frequent Visitor

Identify unique values through time

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.

diegotarquino_1-1661447674227.png

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 

 

1 ACCEPTED 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.

 

 

 

 

View solution in original post

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

Please show the exact result that you are expecting.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you Ashish, @davehus already helped me out😀

 

Thank you for your interest in helping me.

 

Regards,

 

Diego

davehus
Memorable Member
Memorable Member

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.

I have not access .:) 

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

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors