web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Web API query to group...
Power Apps
Unanswered

Web API query to group by lookup column

(0) ShareShare
ReportReport
Posted on by 173

I am trying to use the web API to query a (virtual SQL) table with a grouping by a lookup column as:

 

$apply=groupby((_rwfw_covertype_value),aggregate(rwfw_tiv with sum as total))&

$select=_rwfw_covertype_value,rwfw_tiv&$filter=_rwfw_covertype_value eq d6df9b7f-15d8-ed11-a7c6-6045bdd1d501

 

However I get an error:

 

'rwfw_Exposures' entity doesn't contain attribute with Name = '_rwfw_covertype_value' and NameMapping = 'Platform'

 

It works fine if I select those columns, they just do not work in the apply clause. Is it possible?

I have the same question (0)
  • Guido Preite Profile Picture
    1,488 Super User 2024 Season 1 on at

    that field is a lookup, I didn't try but maybe grouping the id attribute of the table can work, something like:

    $apply=groupby((rwfw_covertype/rwfw_covertypeid)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard