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 :
Customer experience | Sales, Customer Insights,...
Answered

trying to get the distinct values in the SSRS report parameter dropdown, but unable to work on the proper query

(0) ShareShare
ReportReport
Posted on by 102

trying to get the distinct values in the SSRS report parameter dropdown, but unable to work on the proper query

Bydefault it shows all the origin from each row, but i want to take distinct of it 

pastedimage1682612643489v1.png

used below property

pastedimage1682612686944v2.png

pastedimage1682613359206v4.png

pastedimage1682612705770v3.png

The report is working fine filtering , the only need is it should show distinct values in the dropdown instead of all , tried many expression but it is throwing error

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Can you please show the query you used in Dataset1?

  • pskateel Profile Picture
    102 on at

    pastedimage1682623517435v1.png

    i have added in the filter condition to filter this parameter

    pastedimage1682623664569v2.png

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Now I see. The way you might resolve your issue is:

    1. Add a new Dataset that will use "distinct" to merge cs_origin value to get a distinct list of value.

    2. Use that Dataset as a source for your dropdown.

  • pskateel Profile Picture
    102 on at

    I have created dataset and i was able to distinct values from origin, but unless i select the origin from the dropdown it is not showing any data. is it possible to show all the data without selecting the origin 

    i have added to show all data in default values but it doesn't work

    pastedimage1682679884409v1.png

  • pskateel Profile Picture
    102 on at

    I had few case which didnt had origin field value ,so it was not working, once i deleted all the blank origin case then it was showing all data bydefault.

    i had added this xml query for excluding null value , but still if there is any row which has doesnt contain origin then data is not shown in report . not sure why after adding the below condtion still it is not showing all bydefault even if any origin has blank data.

    [ <condition attribute="cs_origin" operator="not-in">]

    <fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0">

    <entity name="incident">

    <attribute name="title"/>

    <attribute name="ticketnumber"/>

    <attribute name="createdon"/>

    <attribute name="incidentid"/>

    <attribute name="caseorigincode"/>

    <attribute name="cs_origin"/>

    <order descending="false" attribute="title"/>

    <filter type="and">

    <condition attribute="cs_origin" operator="not-in">

    <value uitype="cs_origin" uiname="KR"></value>

    </condition>

    <condition attribute="cs_origin" operator="not-null"/>

    <condition attribute="statecode" operator="ne" value="2"/>

    </filter>

    </entity>

    </fetch>

  • pskateel Profile Picture
    102 on at

    had blank values in 2nd dataset i created, so used <condition attribute="cs_origin" operator="not-null"/> this query in that dataset and it worked

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 > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 166

#2
ManoVerse Profile Picture

ManoVerse 149 Super User 2026 Season 1

#3
Zhilan Profile Picture

Zhilan 55

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans