The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Dear all,
I would need your help with coping values within one column for group of rows. In my case, I have invoice represented by Document_No. Our accounting system is spliting invoice into several entries (revenue, VAT and payment).
What I want to achieve - if payment date/closing date of at least one entry within the gropu is not blank, then to replicate this date to remaining rows within the group. Group is defined by entries having identical Document_No.
Please find below example:
Thank you
Ivans
Solved! Go to Solution.
@IvanS ,
You can create a new Calculated Column:
RevisedDate = CALCULATE( MAX( [Payment date/Closing date] ),
ALLEXCEPT( Invoices, Invoices[DocNo] ))
Hope this helps.
Regards,
Hi @rsbin ,
it is working just perfectly when I create calculated column in Invoice table using RELATED(Payments[OriginalDate]).
However, when I try to add RELATED to your function I got following error:
The MAX function only accepts a column reference as an argument.
Is there any way how to avoid this error and achieve the same result without creating additional columns in my Invoice table?
Thank you!
Ivans
@IvanS ,
You can create a new Calculated Column:
RevisedDate = CALCULATE( MAX( [Payment date/Closing date] ),
ALLEXCEPT( Invoices, Invoices[DocNo] ))
Hope this helps.
Regards,