Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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 Amount | Date Invoiced | Date Paid | Days Oustanding |
| 123456 | 100,000 | 1/1/2025 | 1/24/2025 | 23 |
| 123456 | 100,000 | 1/1/2025 | 1/24/2025 | 23 |
| 123456 | 100,000 | 1/1/2025 | 1/24/2025 | 23 |
| 123456 | 100,000 | 1/1/2025 | 1/24/2025 | 23 |
| 92 |
Solved! Go to Solution.
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
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
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
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.
@homboy27 Try:
Days Outstanding Measure =
VAR __Min = MIN( 'Table'[Date Invoice] )
VAR __Max = MIN( 'Table'[Date Paid] )
VAR __Result = ( __Max - __Min ) * 1.
RETURN
__Result
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 48 | |
| 35 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 93 | |
| 79 | |
| 37 | |
| 27 | |
| 25 |