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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Expression in SSRS Reporting

(0) ShareShare
ReportReport
Posted on by

Hi ,

i have some case of Report of payment generation ,The condition is that if invoice# length is greater than 14 characters than remove first 6 characters, i write this =Right( Fields!InvoiceId.Value, len(Fields!InvoiceId.Value) - 6) expression it works but not fulfill the requirements to fulfill the requirement i write this expression  =IIF(len(Fields!InvoiceId.Value > 14),Right( Fields!InvoiceId.Value, len(Fields!InvoiceId.Value) - 6))  but gives error plz help me.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Vilmos Kintera Profile Picture
    46,149 on at

    This is an SSRS report-specific question, you might get an answer faster if you try the dedicated forums for SSRS reporting:

    social.msdn.microsoft.com/.../home

    Also when you write your post there, make sure you explain what error do you get.

  • Verified answer
    Stefan Hofmaninger Profile Picture
    520 on at

    Hi,

    I think the problem is that "IIF" needs also a false-part if your condition doesn't match.

    Try following extpression:

    = IIF(len(Fields!InvoiceId.Value) > 14, Right(Fields!InvoiceId.Value, len(Fields!InvoiceId.Value) - 6), Fields!InvoiceId.Value)

    Regards,

    Stefan

  • Stefan Hofmaninger Profile Picture
    520 on at

    Hi Tauseef Ahmad,

    pls mark my reply as verified answer if it solved your problem.

    Regards,

    Stefan

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans