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 365 | Integration, Dataverse...
Unanswered

SSRS fetchxml allow null values only when All selected

(0) ShareShare
ReportReport
Posted on by 7,316

Hi,

I have a report with fetchxml query like this:

       <filter type="or">
  <condition attribute="new_typeofcase" operator="in"  value="@CaseType" />
      <condition attribute="new_typeofcase" operator="null" />
                          </filter>

This is the only way I can think of to get null values as well when 'All' is selected in the filter. Please let me know if there is another approach.

But using this approach, when a particular value is selected from the filter, it retrieves the desired rows along with null value rows. So, to avoid this, I am thinking in the Tablix properties, I should probably write some expression to detect whether All is selected, so that only then bring null value rows otherwise don't! How do I achieve this?

Not sure if this is possible... but please let me know if I am thinking it right or if there is a better approach.

Thanks for any help!

I have the same question (0)
  • meenoo Profile Picture
    7,316 on at

    Any help is appreciated.

    I tried adding an expression to Tablix filter:

    =IIF(Parameters!CaseType.Count>1,Fields!typeofcase.Value,Parameters!CaseType.Value)

    This is working fine for false part. I am not sure how to handle 'True' part.

    When only one value selected from casetype filter, I get accurate results(no nulls).

    But when I select 'All' from the filter, I am getting inaccurate results. I am sure I have the 'True' part all wrong in my expression.

    All I need is to figure out how to specify in the expression that, when 'all' is selected, bring everything including null value records.

    Anybody please provide some guidance. Thanks.

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 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 126

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 77 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 71 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans