Forum Discussion

homboy27's avatar
homboy27
Icon for Helper III rankHelper III
1 year ago
Solved

Invoice Oustanding days formula

Please see below. I am trying to do formula for days outstanding for invoice but it keeps giving me 92 days. What formula do I do to give me 23 days. 

 

Invoice #Invoice AmountDate InvoicedDate PaidDays Oustanding
123456                 100,0001/1/20251/24/202523
123456                 100,0001/1/20251/24/202523
123456                 100,0001/1/20251/24/202523
123456                 100,0001/1/20251/24/202523
    92
  • v-dineshya's avatar
    v-dineshya
    1 year ago

    Hi homboy27 ,

    We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. And, if you have any further query do let us know.

     

    Regards,

    Dinesh

4 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    homboy27 Try:

    Days Outstanding Measure = 
      VAR __Min = MIN( 'Table'[Date Invoice] )
      VAR __Max = MIN( 'Table'[Date Paid] )
      VAR __Result = ( __Max - __Min ) * 1.
    RETURN
      __Result
  • Hi,

    Assuming Days outstanding is a column in your data table, drag this measure to a card visual

    Avg = average(Data[Days outstanding])

    Hope this helps.

  • v-dineshya's avatar
    v-dineshya
    Icon for Community Support rankCommunity Support

    Hi homboy27 ,

    Thank you for reaching out to the Microsoft Community Forum.

     

    Please refer below output snap and attached PBIX file.

     

     

    I hope this information helps. Please do let us know if you have any further queries.

     

    Regards,

    Dinesh

     

    • v-dineshya's avatar
      v-dineshya
      Icon for Community Support rankCommunity Support

      Hi homboy27 ,

      We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. And, if you have any further query do let us know.

       

      Regards,

      Dinesh