Forum Discussion
change number to abs value using a filter condition
Hi vjnvinod ,
Create 2 measures one for Reverse and another for Not a Reverse.
1. Reverse Charge=if(sum('Table'[ActualChrdHour])>0,(ABS(CALCULATE(SUM('Table'[ActualChrdHour])*-1,'Table'[ReverseVsMercurry]="Reverse Charge"))),sum('Table'[ActualChrdHour]))
2. Not a Reverse = if(sum('Table'[ActualChrdHour])<0,(ABS(CALCULATE(SUM('Table'[ActualChrdHour]),'Table'[ReverseVsMercurry]="Not a reverse"))),sum('Table'[ActualChrdHour]))
Then use them into Switch statement like below by using third custom column:
Final Output Column=SWITCH('Table'[ReverseVsMercurry],"Not a reverse",[Not a Reverse],"Reverse Charge",[Reverse Charge])
Please Give KUDOS to this effort and accept this as a solution if it helps you!
still doesn't helps
Switch function doesn't reads my table coloumn, see below, hence the Switch logic doesn't works