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

Community site session details

Session Id : AVdfkzoGi6CpMUnI6WVeJV
Power Apps - Building Power Apps
Unanswered

Kusto query for ADX

Like (0) ShareShare
ReportReport
Posted on 26 Jul 2023 19:12:36 by

I want to query an ADX database, I have successfully tested the query. I want to query the last 10 records for 3 instances in a column. For example, I have a column named country, I want the last 10 records for say "Australia" "New Zealand" and "Japan". 10 records for each country, so 30 records in total, is this possible?

  • hthpowerapper Profile Picture
    364 Super User 2024 Season 1 on 26 Jul 2023 at 19:40:02
    Re: Kusto query for ADX

    I believe this can be acomplished by using a union and take operators...

    let country1_data = YourTable
    | where country == "Australia"
    | order by YourTimestampColumn desc 
    | take 10;
    
    let country2_data = YourTable
    | where country == "New Zealand"
    | order by YourTimestampColumn desc 
    | take 10;
    
    let country3_data = YourTable
    | where country == "Japan"
    | order by YourTimestampColumn desc 
    | take 10;
    
    union country1_data, country2_data, country3_data

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete