Forum Discussion

katemarkoska's avatar
katemarkoska
Frequent Visitor
2 years ago
Solved

Map a LocalAccount to GlobalAccountPositive or GlobalAccountNegative based on the sum of the Amount

Hi,
I'm trying to do a Balance Sheet report and I need to map Local Accounts to GlobalAccounts.
If the sum(Amount) for the LocalAccount of all data until the selected period is >=0 then map it to GlobalAccountPositive, if the sum(Amount) is less than 0, than map it to GlobalAccountNegative. 
I tried doing this with a calculated column in DAX

VAR Positive = VALUE('GenLedgEntries'[GlobalAccountPositive])
VAR Negative= VALUE('GenLedgEntries'[GlobalAccountNegative])
VAR maxdate=MAX('Date'[datekey])

1 Reply