Hi,
I have a column in a table called Account_Balances that I want to sum into table on a report. I have used the below to acheive this:
CALCULATE((SUM(Report1[ACCOUNT_BALANCE])),Report1[ACCOUNT_BALANCE]<0)
However, because the source data is negative where the account balance is in credit, the total number is also a negative number. I am trying to turn that into a positive number on the report, but failing miserably.
Here is what I have tried so far:
1. Created a measure on source table with ABS(ACCOUNT_BALANCE). Then used the below formula:
Solved! Go to Solution.
Try
Positive balance =
ABS (
CALCULATE ( ( SUM ( Report1[ACCOUNT_BALANCE] ) ), Report1[ACCOUNT_BALANCE] < 0 )
)
Excellent - many thanks...I knew it would be a simple solution, I'm just a newbie to Power BI.
Try
Positive balance =
ABS (
CALCULATE ( ( SUM ( Report1[ACCOUNT_BALANCE] ) ), Report1[ACCOUNT_BALANCE] < 0 )
)
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
Join the biggest FREE Business Applications Event in LATAM this February.
User | Count |
---|---|
217 | |
49 | |
45 | |
45 | |
41 |
User | Count |
---|---|
264 | |
211 | |
103 | |
75 | |
66 |