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 :
Finance | Project Operations, Human Resources, ...
Answered

Ssrs report design expression with Or condition .

(1) ShareShare
ReportReport
Posted on by 1,836
I am working on report which is having the Expression in text box which makes the text visible on when the report opens on specific menu item i want to add my condition in or expression how can i achive this in ssrs report , can plz anyone one guide me on this . 
 
this is the text box expression , 
 
//=iif(Parameters!POHeader_strMenuName.Value=/IM_VendPurchaseOrder/,/Note: this purchase order is approved electronically by Bahra Electric management and does not require any signature/ & Vbcrlf & Vbcrlf & /Best regards,/ & Vbcrlf & Vbcrlf & /Bahra Electric - Procurement Department/,//)
 
this is the expression i need to add in or case 
//=iif(Parameters!DTPurchStatus =1,true,false ,/Note: this purchase order is approved electronically by Bahra Electric management and does not require any signature/ & Vbcrlf & Vbcrlf & /Best regards,/ & Vbcrlf & Vbcrlf & /Bahra Electric - Procurement Department/,//)
 
but i am getting error if i put both expression using /OR/
I have the same question (0)
  • Suggested answer
    Layan Jwei Profile Picture
    8,097 Super User 2025 Season 2 on at
    Hi Dinesh
     
    Can you please show us the full expression you wrote including the OR to know what the issue is.
     
    Maybe also check this link to see how to do an OR expression
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Dineshkarlekar Profile Picture
    1,836 on at
    but how can i enter these lines /Note: this purchase order is approved electronically by Bahra Electric management and does not require any signature/ & Vbcrlf & Vbcrlf & /Best regards,/ & Vbcrlf & Vbcrlf & /Bahra Electric - Procurement Department/,//) that is still my problem .
  • Verified answer
    Layan Jwei Profile Picture
    8,097 Super User 2025 Season 2 on at
    Hi Dinesh,

    You didn't share the current expression that you wrote which errors so that we amend it for you. Can you please share it? Or please type what is the exact requirement, If sth, then you need this and this Else you need that (as didn't quite understand from your question)

    Did you try sth similar to this? (of course replace it with your field values)

    =IIF(Parameters!Name.Value="Value1" OR Parameters!Name.Value="Value2", "Print what you would like to see when condition is met", "")

    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans