Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 863557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:19:52+00:00 2026-05-15T09:19:52+00:00

I have a list grouped by Region and it currently shows all the items

  • 0

I have a list grouped by Region and it currently shows all the items for each city. I want to reduce to only the most recent advisory for each city.

I have tried to use an xsl:for-each statement but I am messing up the names/parameters.

List is called mlc
The list contains the fields:
Title
City
Region
Advisory
DateCreated
TT (calculated number field to find the number of minutes from the DateCreated to end of today which I intended to use the smallest to find the most recent)

I have the list grouped by Region and it currently shows all the items for each city. I want to reduce to only the most recent advisory for each city.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T09:19:53+00:00Added an answer on May 15, 2026 at 9:19 am

    I had a co-worker help me and the code goes like this. City is sorted ascending. Created is sorted descending.

    <xsl:if test="not(preceding-sibling::Row[1]/@City) or preceding-sibling::Row[1]/@City!=@City">

    Now each city is shown only once and it is the most recent advisory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a list of data need to be grouped, but we only want
I have created a TableView(Grouped Table View). And I can list the items in
I have a list of items that are grouped by their first letter. By
I have a list of documents and I want to display them grouped by
G'day, I have a list of individuals that are grouped by place. I want
I have a list of items grouped in a table, let's say 30 and
I am using grouped tableview for developing a contact list using database. I have
I have list of articles on the page in table and i want to
I have list of structure. I want to modify a particular data from the
I have List I want to sort Desc by Priority, which is int and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.