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

How to check a range in SSRS expressions as between is not supported in SSRS

$
0
0

I have a table for a user who has following columns and values 

RatingID | MiddleRatingID
4                     10.5
10
11
12

Below is the switch expression I am using

=switch(SUM(Fields!RatingID.Value)=12,4,
SUM(Fields!RatingID.Value) between 12 and (Fields!MiddleRatingID.Value),3,
SUM(Fields!RatingID.Value) between 4 and  (Fields!MiddleRatingID.Value),2,
SUM(Fields!RatingID.Value)=4,1
)

SSRS  doesnt support between hence looking for help to check range  for the below 2 expressions 

Note: I have decimal MiddleRatingID 10.5.


SUM(Fields!RatingID.Value) between 12 and (Fields!MiddleRatingID.Value),3,
SUM(Fields!RatingID.Value) between 4 and  (Fields!MiddleRatingID.Value),2,





Viewing all articles
Browse latest Browse all 10045

Trending Articles



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