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 September 15. Request your voucher.

Reply
ccubs2331
Frequent Visitor

DAX formula

I have a table of accounts were is have a column Placed Date and a column Payment Date. I added a column and used a 

List to Payment Days = DATEDIFF(Debtor[Placed Date], Debtor[Payment date],DAY). I get the correct number from this. Now I am trying to see how many accounts have List to Payment Days greater than 30. I added a column and used 
List to Payment Days 30 = IF(SUM('Debtor'[List to Payment Days]) > 30, 1, 0). It is giving my a 1 on every account. I need to know were I went wrong.
 
Thank you
1 ACCEPTED SOLUTION
harshnathani
Community Champion
Community Champion

HI @ccubs2331 ,

 

REmove SUM

 

List to Payment Days 30 = IF(Debtor'[List to Payment Days] > 30, 1, 0)

 

 

https://www.youtube.com/watch?v=03E0f-RyRn4

 

Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

View solution in original post

1 REPLY 1
harshnathani
Community Champion
Community Champion

HI @ccubs2331 ,

 

REmove SUM

 

List to Payment Days 30 = IF(Debtor'[List to Payment Days] > 30, 1, 0)

 

 

https://www.youtube.com/watch?v=03E0f-RyRn4

 

Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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