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

Announcements

News and Announcements icon
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,490 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard