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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
M_nwadibia
Resolver III
Resolver III

expression to exclude rows in ssrs report

 

Hello,

I need ssrs expression that will enable me exclude some rows in my report. I have three page report but I want the three pages on one page. I used the expression cint(Fields!Senate_District.Value)<=20 to get 1-20 rows and cint(Fields!Senate_District.Value)>50 

to get rows 50 to 90.

I need the expression for rows 21-49 but my expression cint(Fields!Senate_District.Value)<20 AND Fields!Senate_District.Value >49 IS FAILING

M_nwadibia_0-1669856222353.png

 

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User


@M_nwadibia wrote:

I need the expression for rows 21-49 but my expression cint(Fields!Senate_District.Value)<20 AND Fields!Senate_District.Value >49 IS FAILING

 


This is because your expression is logically incorrect and will exclude all rows as now row can be both less than 20 and greater than 49. If you change your expression to use OR instead of AND it should work fine.

 

cint(Fields!Senate_District.Value)<20 OR cint(Fields!Senate_District.Value) >49 

 

However it would be more efficient to do this filtering in the query for your dataset so that these rows do not even get sent back to Report Server for processing.

View solution in original post

1 REPLY 1
d_gosbell
Super User
Super User


@M_nwadibia wrote:

I need the expression for rows 21-49 but my expression cint(Fields!Senate_District.Value)<20 AND Fields!Senate_District.Value >49 IS FAILING

 


This is because your expression is logically incorrect and will exclude all rows as now row can be both less than 20 and greater than 49. If you change your expression to use OR instead of AND it should work fine.

 

cint(Fields!Senate_District.Value)<20 OR cint(Fields!Senate_District.Value) >49 

 

However it would be more efficient to do this filtering in the query for your dataset so that these rows do not even get sent back to Report Server for processing.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.