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 NAV (Archived)

how to give if condition for two filed in nav ssrs report

(0) ShareShare
ReportReport
Posted on by 313

Hi friends,

want to put if condition for two fields in SSRS report in nav 2016

=iif(sum(Fields!CashDiscountAmount.Value, "DataSet_Result") AND ReportItems!Textbox76.Value=0," ","CASH DISCOUNT" )

this is my expression  i need to get  that text if both filed have value or at least 1 filed have a value if both filed is 0 means i dont want to show this text(CASH DISCOUNT)  in report. please give any solution

Thank you

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    The sum is strange, because this is not a condition that you can place in AND with another. I don’t know your requirements but maybe:

    =iif((sum(Fields!CashDiscountAmount.Value, "DataSet_Result")=0) AND ( ReportItems!Textbox76.Value=0)," ","CASH DISCOUNT" )

  • Prabakaran.R Profile Picture
    313 on at

    Hi Stefano,

    Thank you for your reply , please tell me how to put the more than 2 if condition in row visibility in ssrs report.

    =iif(Fields!PrintAmountInLCY.Value,false,true) or iif(Fields!PrintDetails.Value,false,true)&iif(AgedCustLedgEntry[5].value >= 3000,false,true);

    i want write a expression like that but unfortunately im getting error in this.

    Thank you

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    IIF must be only once at the end of the condition and inside the IIF block you need to place only Boolean conditions. So something like:

    =iif((Fields!PrintAmountInLCY.Value = 1) OR ((Fields!PrintDetails.Value = 1) AND (AgedCustLedgEntry[5].value >= 3000)),true,false);

  • Prabakaran.R Profile Picture
    313 on at

    Hi stefano

    Thank you for your reply i got a solution.

    Thank you

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 NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans