Hi,
Pardon if I cannot share the PBIX file as the data is too large (4M rows) and it’s a raw data (Journal Voucher) of our 3 companies, which I consolidated to create an Income Statement and Balance Sheet. I cannot obscure also the amount as my issue is related to it.
I followed the Financial Reporting guide on how I set up my model and calculations.
https://portal.enterprisedna.co/courses/enrolled/448571
So far, Income Statement is working is fine (IncomeStatement.jpg).
This is my main model. Journal vouchers of 3 companies are merged into this one table and are identified by subsidiary column (PBCC, RDTC, APPSCOR).
PBCC, RDTC, APPSCOR are the companies with their designated main accounts on Balance Sheet Excel Template formatted below.
The issue is on the Balance Sheet part, I have a weird issue with my calculation below. The APPSCOR company is calculating correctly. But on the RDTC I cannot get it right, even though they have the same DAX measures.
Maybe there’s a better way to optimize this code. They are the same, but one doesn’t with the other company.
RDTC - Cash and Cash Equivalents = CALCULATE(
SUMX(ConsolidatedData, ConsolidatedData[Amount]),
FILTER(ConsolidatedData, ConsolidatedData[Main Account] in
VALUES(‘X-BSCashAndCashEquivalents’[RDTC])
))RDTC - Cash and Cash Equivalents - Cml = CALCULATE(
[RDTC - Cash and Cash Equivalents],
FILTER(ConsolidatedData, ConsolidatedData[Subsidiary] = “RDTC”),
FILTER(ALLSELECTED(Dates[Date]), Dates[Date] <= MAX(Dates[Date])
))
I really wanted to share my PBIX but I can’t due to sensitive data. I can share it to someone who can PM if it really needed to resolve my issue. I just can’t paste it here and accessible to anyone.
Thanks,
Jassfer