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

City,state,country not coming properly when one column not Exist

$
0
0

Hi,

i am using below exprssion for loation of Supplier.

=SWITCH(
IsNothing(Fields!MSUPCITY.Value) AND IsNothing(Fields!MSUPSTATE.Value) AND IsNothing(Fields!MSUPCOUNTRY.Value),"",
IsNothing(Fields!MSUPCITY.Value),Fields!MSUPCOUNTRY.Value,
IsNothing(Fields!MSUPCITY.Value),Fields!MSUPSTATE.Value,
IsNothing(Fields!MSUPCOUNTRY.Value),Fields!MSUPSTATE.Value,
True,Fields!MSUPCITY.Value+", "+Fields!MSUPSTATE.Value + ", " + Fields!MSUPCOUNTRY.Value
)

but when ever City is not there in Database output is coming with one extra (,) like----    ,state, Country

how to Avoid this Extra comma somtimes it's coming in between when sate is not there.

Any Suggestion plz  let me know.


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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