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 September 15. Request your voucher.
Instead of just disaggregating the budget amount evenly across invoices like in Column I; using DAX Power BI, how can I calculate the percent the invoice is to the total net amount for invoices charged to that specific lawsuit and then divide the budget based upon that percent (like in Column K)? I've attached a screenshot, and the formula would be a variation of the formula below.
Goal =
[Amount paid to date for law suit]
/ CALCULATE (
COUNTROWS ( TableName ),
ALLEXCEPT ( TableName, TableName[Lawsuitkey] )
)
assuming lawsuit is the same as project id this calculated column should work
Column = VAR __ProjectKey = 'Table'[Project Key] VAR __InvoiceHeaderKey = 'Table'[Invoice Header Key] VAR __TotalPerProject = CALCULATE(SUM('Table'[Budgeted Amount]), FILTER(ALL('Table'), 'Table'[Project Key] = __ProjectKey)) RETURN __TotalPerProject*'Table'[Invoice Percent Of Total Invoices]
@Stachu I guess the first question should have been how do I get
'Table'[Invoice Percent Of Total Invoices]
This column is the Invoice Percent of Total Invoices grouped by Consulting Company Key
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |