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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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