Forum Discussion
Dynamic Receivables aging
Hi bzjens
Can you recreate the measure in the form of a Calculated Column then add that to the table? This may lead to a quicker resolution.
Otherwise, you will likely need to create a secondary measure using the "IF ( HASONEFILTER (Measure) = TRUE() , Measure1 , Measure2)" philosophy as explained by Greg in this post: https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
Hope the above is of some type of help π
Theo
Hi TheoC
Thanks for replying!
I think I will have trouble using calculated columns as I'm aggregating over rows based on dates in the slicer
(To have my chart showing i.e. month by month)
But Greg's post is likely the way to go.
Thanks for sending me in that direction!
BΓΈrre
- TheoC4 years agoCommunity Champion
bzjens absolutely mate. No trouble at all.
If it's not exactly what you were after, you may be able to achieve the outcome you're wanting by adjusting your SUMs to SUMXs. For example:
amountRemaining = IF(MIN(Invoices[dueDate]) < MIN('Calendar'[Date]) && MAX('Calendar'[Date]) > MIN(Invoices[datePaid]), SUMX('Invoices' , Invoices[invoiceAmount]) - SUMX('Invoices' , Invoices[amountPaid]), SUMX('Invoices',Invoices[invoiceAmount]))Let me know either way!
Theo π