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 / Distinct last year fro...
Power Apps
Answered

Distinct last year from a date column

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Team,

I need distinct current year-1 from a date column based on the dropdown selected for client.

DateClient
1/1/2020ABC
1/1/2020ABC
1/1/2020ABC
1/1/2020ABC
1/1/2020ABC
1/1/2020ABC
1/1/2020ABC
2/1/2020BCD
2/1/2020BCD
2/1/2020BCD
2/1/2020BCD
2/1/2020BCD
2/1/2020BCD
2/1/2020BCD
Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    Consider this:

    Distinct(Datasource,Text(Date,"yyyy"))
     
    Or
    Distinct(Datasource,Text(DateValue(Date),"yyyy"))
    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
     
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @eka24 

    I want current year-1.That means 2021-1 =2020 from the date column based on the client selected from dropdown from client column.

  • eka24 Profile Picture
    20,925 on at

    Please show a screen shot of the current formula on the Items of the Dropdown

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @eka24 .

    This is the formula I am using now as dropdown, which allows user to select the year.

    Distinct(Filter(SOC_Assessment_Responses,Client_Name = Dropdown1.Selected.Result),Year(Date)).Result

     

    But I want to hardcode it to current year-1.

     

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Try this:

    Distinct(Filter(SOC_Assessment_Responses,Client_Name = Dropdown1.Selected.Result),Text(Date,"yyyy-m")).Result

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard