web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

SSRS Report hide tablix

(0) ShareShare
ReportReport
Posted on by

Hi

I do have multiple tablix on my SSRS Report and on special conditions I want to hide one of it. Therefore I add an Expression in the tablix properties  "Show or hide.."

this Expression Looks like:

=iif(Fields!SalesOriginId.Value = "01" And Fields!SalesPoolId.Value = "05" And CountRows("WMSPickingList_TransportTmp") > 0, false, true)

 

So the Tablix should be hidden if the SalesOriginId != "01" AND the SalesPoolId != "05" AND if there are no rows/records in the table the tablix belongs to (WMSPickingList_TransportTmp)

 

In our case the tablix is shown anytime even if the it should be hidden

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    !=(X++) is represented as <> (in VB)

    SSRS makes use of VB

    Fix you code and retry. If that does not works, you may give another try by replacing position of false, true

  • Community Member Profile Picture
    on at

    I tried different expression (as well the reversed one you mentioned with <> and false, true replaced) but no Chance...the tablix is still there even if empty

  • XB Profile Picture
    1,875 on at

    Did you try a simple expresion like =iif(CountRows() > 0, false, true)

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    where are you putting this code? Tablix visible property or somewhere else?

  • Suggested answer
    Johnkrish Profile Picture
    781 on at

    Hi ChrisBERN,

    in your expression you have to put open and close braces for each condition. so try like this

    =iif((Fields!SalesOriginId.Value = "01") And (Fields!SalesPoolId.Value = "05") And

    (CountRows("WMSPickingList_TransportTmp") > 0), false, true)

    like this i've done it for some requirement and it is working properly

    =iif((Fields!ItemId.Value="JK-K001") And (Sum(Fields!Ordered.Value)=20),true,false)

     

    Regards,

    Johnkrish

  • Dick Wenning Profile Picture
    8,705 Moderator on at

    msdn.microsoft.com/.../dd220590.aspx

  • Verified answer
    Community Member Profile Picture
    on at

    Hi all I had to split my Expression. so now it works

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans