Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all,
I want to identify in a column (not as a measure) all values for a specific ID only once.
ID | Date | Unique |
10 | 09.11.2017 | YES |
2 | 01.12.2017 | YES |
10 | 11.11.2011 | NO |
The respective formular in Excel works fine as follows:
=IF(MATCH(A4,A:A,0)=ROW(),"YES","NO")
What I wanted to do is, that the last entry of an ID is identified as unique (column C) and all past values of the same ID should be marked as "no". Therefore the DISTINCTCOUNT formular with filter is not working. In that case, all double values would be counted > 1. For ID 10 the outcoume would be 2 for both rows but I want to count ID excatly one time as unique.
I dont want to delete duplicate rows.
Does anyone has an idea how to solve that problem?
Regards
Michael
Solved! Go to Solution.
Hi, try with this calculated column
Unique = IF ( CALCULATE ( MAX ( Table1[Date] ); FILTER ( Table1; Table1[ID] = EARLIER ( Table1[ID] ) ) ) = Table1[Date]; "Yes"; "No" )
Regards
Victor
Lima - Peru
Hi, try with this calculated column
Unique = IF ( CALCULATE ( MAX ( Table1[Date] ); FILTER ( Table1; Table1[ID] = EARLIER ( Table1[ID] ) ) ) = Table1[Date]; "Yes"; "No" )
Regards
Victor
Lima - Peru
Hi Victor,
your solution worked perfect. I had to change the initial idea from the latest to the earliest date, but that was easy with your solution!
Thanks a lot,
Michael
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |