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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
bhelou
Responsive Resident
Responsive Resident

Receivable Days aging Dynamic

Hello ,
I Have receivalbles aging to do , i have made measures for the days still not yet received , now i am trying to make aging 30 - 90 - 180 - 360 - 720 etc ...  for it as from the days shown , when i am trying the dax : Max is not accepting saying : The MAX function only accepts a column reference as the argument number 1.

 

Invoices : is a measure of the total invoices
Balance is:  Invoices - Payments

 

FORMULA FOR DAYS ( WORKING )  : 

Receivable Days = IF([Status] = "Paid" , 0 , FORMAT( TODAY() - [Invoice Date], "General Number"))

 

 

Formula  FOR AGING ( NOT WORKING ) : 

Receivable Days 30 =

var getdays = IF(MAX([Receivable Days]) <=30,[Receivable Balance],BLANK())

Return

getdays

 

Thank you for your usual help ,


Attached Sample

Days 0-30.png 



 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@bhelou , If it is column 

calculate([Receivable Balance], filter(Table,Table[Receivable Days]<=30))

 

In case it is a measure

IF(([Receivable Days]) <=30,[Receivable Balance],BLANK())

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

@bhelou , Create like


Receivable Days =  IF([Status] = "Paid" , 0 , datediff( [Invoice Date],TODAY(), day))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
VijayP
Super User
Super User

@bhelou 

This File may help you!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


amitchandak
Super User
Super User

@bhelou , If it is column 

calculate([Receivable Balance], filter(Table,Table[Receivable Days]<=30))

 

In case it is a measure

IF(([Receivable Days]) <=30,[Receivable Balance],BLANK())

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I KNOW  i have tried it , it wont work and even if i wirte it as simple to test it out :

Receivable Days 30 =
IF(([Receivable Days]) <=30 , "True","False")  //  it is giving all false , i think it is from the measure of the Receivable days : 
Receivable Days = IF([Status] = "Paid" , 0 , FORMAT( TODAY() - [Invoice Date], "General Number")) // i dont now if it is acurate , please help @amitchandak  many thanks 




 

 

r dASYS.png

@bhelou , Create like


Receivable Days =  IF([Status] = "Paid" , 0 , datediff( [Invoice Date],TODAY(), day))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors