Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Negative to Positive value

Author  Topic 

Villanuev
Constraint Violating Yak Guru

478 Posts

Posted - 2011-11-29 : 02:17:05
Guys,

I have a Qty field with a negative value.
My objective is to remove the negative value in SSRS expression.
how to do this in expression. Thanks

Qty
---
-200

Result:

Qty
---
200

Regards,

JOV

Villanuev
Constraint Violating Yak Guru

478 Posts

Posted - 2011-11-29 : 02:27:26
Guys,

Please correct me if im wrong or if you have any idea.
I modify through the script and insert this codes.

Abs(Qty)

but if i will use in SSRS expression ? how to do this.


Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-29 : 03:17:47
you've Abs() function in ssrs also

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Villanuev
Constraint Violating Yak Guru

478 Posts

Posted - 2011-11-29 : 03:55:30
Hi Visakh,

How to use in Expression. here is my example.

=Fields!Writeoff.Value
=Sum(Fields!Writeoff.Value)

Is this correct?

=Abs(Fields!Writeoff.Value)
=Abs(Sum(Fields!Writeoff.Value))


another query:
I have date parameter start and enddate.
set up like this.
default values -->specify values -- values
My question is when i tried to preview the report in report manager
both this parameter was disabled. i could not use the calendar.

because both parameter has aleady a value?

thanks

JOV
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-29 : 06:53:05
yep...thats correct

for parameters didnt it have values you gave? i dont think it will come as disabled

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -