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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Skemaz
Advocate II
Advocate II

Rounding up a decimal and filtering to create discrete values

Hi

I have a table with a large number of rows from data recorded at very close time intervals.

In the screen-shot below, I have a number that I'd like to round up a few decimal points and then flter to remove duplicates based on two of the columns combined (Horse Name & UTC Time).

Horse Name is in the 1st column in the screen-shot below.

The example of the "UTC Time" shown below is (1) 42862.50367 in the table and (2) 42862.5036666667 when I inspect it. 

What I'd like to do is round up the above example to 42862.504.

In doing so, I'll wind up with duplicates (of Horse Name & UTC Time), so I'd then like to filter the combination so I wind up with records that are unique by Horse Name & rounded UTC Time.

I'm sure there's a way to do this but I can't seem to figure it out.

I'll appreciate any assistance.

Thanks, Mark.

Picture1.png

 

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Skemaz,

 

In the querry editor add a custom column with:

 

Number.Round([UTCTime],2)

Then use that column to remove your duplicates.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @Skemaz,

 

In the querry editor add a custom column with:

 

Number.Round([UTCTime],2)

Then use that column to remove your duplicates.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi MFelix

Many thanks for helping.

Best regards, Mark.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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