Skip to main content

Notifications

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

  • Prabakaran.R Profile Picture
    313 on at
    RE: how to give if condition for two filed in nav ssrs report

    Hi stefano

    Thank you for your reply i got a solution.

    Thank you

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: how to give if condition for two filed in nav ssrs report

    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
    RE: how to give if condition for two filed in nav ssrs report

    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
    RE: how to give if condition for two filed in nav ssrs report

    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" )

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans