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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Show AX Label on SSRS report based on some condition

(0) ShareShare
ReportReport
Posted on by 4,624

Hello,

 I am using AX label Id on page footer of SSRS report (SalesInvoice ) but I want to show another label Id in place of first one based on some condition ( based on some checkbox on table). is it possible ?

please suggest

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at
    RE: Show AX Label on SSRS report based on some condition

    Hi,

    Yes. You can use the following expresssion on the textbox where you want to switch

    between labels:

    =iif((Fields!Checkbox.Value = true), Labels!@SYS123, Labels!@SYS234))

  • Rohin Profile Picture
    4,624 on at
    RE: Show AX Label on SSRS report based on some condition

    thanks Sukrut and Chaitanya , will try and update you.

  • Rohin Profile Picture
    4,624 on at
    RE: Show AX Label on SSRS report based on some condition

    one question for you : i haven't that checkbox field on tmp tables (used for report) , it is in my regular table( used to initialize tmp table) so it means i have to create that checkbox first in tmp table and initialize it from regular table and then used it on SSRS report ..am i right?

  • Rohin Profile Picture
    4,624 on at
    RE: Show AX Label on SSRS report based on some condition

    Hi,

    I am using below expression on page footer:

    =IIF((First(Fields!DBAAllowed.Value = true, "SalesInvoiceHeaderFooterDS"),labels!@SDM67,labels!@SDM35)

    but giving invaild syntax. please suggest

  • Rohin Profile Picture
    4,624 on at
    RE: Show AX Label on SSRS report based on some condition

    sorry , i forgot to put braces at end. its build successfully. let me test

  • Rohin Profile Picture
    4,624 on at
    RE: Show AX Label on SSRS report based on some condition

    Hi,

    Now report is deployed successfully with following expression:

    =IIF((First(Fields!DBAAllowed.Value = true	, "SalesInvoiceHeaderFooterDS")),Labels!@SDM67,Labels!@SDM35)


    But report is showing "#Error"  in place of label for both condition(true/false). please suggest

  • AX 2012 r3 Profile Picture
    2,426 on at
    RE: Show AX Label on SSRS report based on some condition

    Hi Visvash,

    1.Create Parameter in Contract and if used UI update in that.

    2.Refresh Data Source in Visual studio then you can see new parameter in Report Parameters

    No need to update in Temp table or regular table.

    2. Use in Expression like

    =IIF(Parameters!NewParameter.Value,false,true)

    Provide Values in False or True and Try that.

    Regards.

    Have a great day

  • Rohin Profile Picture
    4,624 on at
    RE: Show AX Label on SSRS report based on some condition

    Thanks AX2012 r3, but its not parameter. It is table field checkbox so based on that labels should be printed...

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans