Showing results for 
Search instead for 
Did you mean: 

why distinct is not allowed in SQL Server query of OData ?

I am trying to fetch the rows from which I don't need duplicate rows.

in SQL I can use distinct but if I use distinct in OData SQL Server query filter it is not allowing...

what is the reason ?


Super User II
Super User II

Hi friend what I know is that in ODATA you can do this operations


System Query Option $filter
System Query Option $orderby
System Query Option $top and $skip
System Query Option $count
System Query Option $expand
System Query Option $select
System Query Option $search

Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!

If you want you can follow me at Quieres contenido en español? Síguenos en Power Automate LA
Community Support
Community Support


Hi @ShivaPatpi ,


Could you please show us how you configure specific actions?


Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I used this work around

but my question still remains the same:


Why should I get duplicate values from SQL

later on why should I do additional work to remove the duplicates by setting the variable and followed by union.


why can't we have a feature request to get rows from SQL  in that ODATA select statement itself ?

Helpful resources

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group


Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (31,387)