Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

How to match text regardless of case

$
0
0

This seems like there should be an easy answer to this, but I've been searching the net and cannot find a solution.

In SQL 2008 Reporting Services, I have the following expression:

=Iif((Fields!Country.Value = "mycountry" or Fields!Country.Value = "country"), Nothing, Fields!Country.Value)

How do I make this expression case insensitive? I want to match "country", "mycountry", "MyCountry", "COUNTRY", etc. Is there a function such as the following to do this?

=Iif(IgnoreCase(Fields! Country.Value =....

Or is there a regular expression that can be used for the purpose?

Thanks!


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>