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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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 Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors