Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
M_nwadibia
Resolver III
Resolver III

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 III
Resolver III

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.