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

Don'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.

Reply
DouglasWatkins
Frequent Visitor

How do I remove duplicates on a more permanent basis?

I have a data set that looks like the below data.  I created a graph based on the Time column.  I want the graph to only count rows with the same ID once.  The data set and subsequently the graph will be occassionaly updated.  Please help.

 

ID  Owner  End        Title       Time

7   Ted        White     XD          9:45 1/1/18

7   Ted        Green     GT          9:45 1/1/18

8   John      Blue        PT          9:25  8/8/16

9   Bill         Hazel     TY          11:45 2/6/22

1 ACCEPTED SOLUTION
edhans
Super User
Super User

Use the DISTINCTCOUNT(TableName[ID]) Function. It will return 3 in the example above.

You can use the Table.Distinct function in Power query (remove duplicates) on the ID row, but it will delete the 2nd row there, which is likely not what you want unless you are ok to use the info for Ted/Green/GT.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

Use the DISTINCTCOUNT(TableName[ID]) Function. It will return 3 in the example above.

You can use the Table.Distinct function in Power query (remove duplicates) on the ID row, but it will delete the 2nd row there, which is likely not what you want unless you are ok to use the info for Ted/Green/GT.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.