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
asundstrom
New Member

Detect round dollar amounts for fraud testing

I'm trying to create a way to detect round dollar amounts (i.e., $48.00, $47.00, etc.) from a column with various dollar amounts. I have not able to find a way unless I do a conditional column and input each individual dollar amount (which would be tedious). Any help is greatly appreciated.  

1 REPLY 1
edhans
Super User
Super User

Two ways:

  • In Power Query, use the following formula
    • = if [Dollars] * 100 = Number.Round([Dollars],0) * 100 then true else false
  • In DAX in a calculated column, use this
    • DAX Fraud = 
      IF(Table1[Dollars] * 100 = ROUND(Table1[Dollars],0) * 100,
          TRUE(),
          FALSE()
          )

they both return TRUE if the dollars are even with no cents. You can change the conditions to do something besides report TRUE/FALSE.



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

Top Solution Authors