Hi @Pavel
Itâs a bit difficult to provide Solution without looking into Actual data. What I have tried is creating two table as Cash Revenue and Accrual Revenue.
Step 1 - Union these two to create Channel Revenue table. Diff Category based on Table.
Channel Revenues =
Var CashRev = SUMMARIZE( âCash Salesâ, âCash Salesâ[Channel], Dates[Month & Year],
âCategoryâ, âCash Revenueâ,
âFirst Dateâ, MIN( Dates[Date] ),
âSales Valuesâ, [Total Sales cash] )
Var AccRev = SUMMARIZE( âAccural Salesâ, âAccural Salesâ[Channel], Dates[Month & Year],
âCategoryâ, âAccural Revenueâ,
âFirst Dateâ, MIN( Dates[Date] ),
âSales Valuesâ, [Total Sales Accural] )
return
union(CashRev,AccRev)
Step 2 - Created Index statement. Same as existing.
Income Statement =
UNION( 'Company Expenses',
SUMMARIZE( 'Channel Revenues', 'Channel Revenues'[Channel], 'Channel Revenues'[Category], 'Channel Revenues'[First Date], 'Channel Revenues'[Sales Values] ) )
Step 3 - Create Revenue in two ways. Create two separate Measures for Cash and Accrual OR
create a Slicer and based on Selection, change Revenue Dynamically.
Revenues Cash=
CALCULATE( [Financial Values], 'Income Statement'[Category] = "Cash Revenue" ) OR
Revenues Accrual =
CALCULATE( [Financial Values], 'Income Statement'[Category] = "Accrual Revenue" )
OR
Revenues Dynamic =
var SelectedTable = SELECTEDVALUE(TableSelect[Selection])
var CashRev = CALCULATE( [Financial Values], âIncome Statementâ[Category] = âCash Revenueâ )
var AccRev = CALCULATE( [Financial Values], âIncome Statementâ[Category] = âAccrual Revenueâ )
return
switch(SelectedTable,âCashâ,CashRev,AccRev)
Step 4 - Use new Revenue Measures in Final Measure.
Selected Year Actuals =
VAR CurrentItem = SELECTEDVALUE( 'Income Statement Template'[Items - Normalized] )
RETURN
SWITCH( TRUE(),
CurrentItem = "Total Revenues", DIVIDE( [Revenue Dynamic], 1000, 0 )
Above need to be repeated for all required measures. Check if this is helpful. If any issues, let us know.
Attached the PBIX. Check Income Statement Page.Financial Reporting In Power BI.pbix (862.3 KB)
Thanks
Ankit J