Forum Discussion
change number to abs value using a filter condition
vjnvinod ,
As per your very first message in this post you mentioned below statement:
"basically i need to convert any negative numbers in my coloumn(ActualChrdHours) to positive number if my coloumn(ReverseVsMercurry) is "Not a reverse".
Based on above requirement we requirement two fields i.e. ActualChrdHours and ReverseVsMercurry. So why you are using chargedHour field? And this ChargedHour is coming from table different than where these ActualChrdHours and ReverseVsMercury are coming. SO make the proper relationship between those two fields cause this is happening due to improper relationship.
Thanks!
- vjnvinod6 years ago
Impactful Individual
i think while i type the table it picked it up, sorry for that,below is what i have tried, but some error, can you check
- vjnvinod6 years ago
Impactful Individual
- Tahreem246 years ago
Super User
HI vjnvinod ,
Use the below meaure to fullfill your requirement:
Measure 2 = if(sum('Table'[ActualChrdHour])<0,(ABS(CALCULATE(SUM('Table'[ActualChrdHour]),'Table'[ReverseVsMercurry]="Not a reverse"))),sum('Table'[ActualChrdHour]))
I dont know why you are using two IF condition in your measure.