cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
M_nwadibia
Resolver II
Resolver II

Expression to replace a value in ssrs

Please I need an expression to replace 9,999 in column 1 in SSRS. First column is named column1

 

M_nwadibia_0-1670265441940.png

 

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

This is possible to do. You just need to right click on the field in your tablix control and then change the expression from something like:

 

=Fields!ID.Value

 

to something like this:

 

=iif(Fields!ID.Value=9999,"Unknown",Fields!ID.Value)

 

This is using an example column called "ID" you would need to change this based on the field name in your dataset.

View solution in original post

2 REPLIES 2
d_gosbell
Super User
Super User

This is possible to do. You just need to right click on the field in your tablix control and then change the expression from something like:

 

=Fields!ID.Value

 

to something like this:

 

=iif(Fields!ID.Value=9999,"Unknown",Fields!ID.Value)

 

This is using an example column called "ID" you would need to change this based on the field name in your dataset.

M_nwadibia
Resolver II
Resolver II

The value needed to replace 9999 is "Unknown". I have replaced the value with Unknown in SQL but when I apply filter in SSRS the numbering is not chronological. You can see below it doesnt show 3-9 in the field.

M_nwadibia_0-1670273290898.png

 

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.