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 / Showing specific Col o...
Power Apps
Unanswered

Showing specific Col of Sharepoint List based on Date

(0) ShareShare
ReportReport
Posted on by 65

I have a sharepoint list with months that represent goals for each salesperson.

SalesRep, Jan, Feb, March, April, May etc. (Cols)

I would like to only show the last 3 months of goals based on the date.

 

I can use Month(Today())-3 but I can't figure how to base each month with the corresponding #

Categories:
  • eka24 Profile Picture
    20,925 on at

    Can you show a sample data and the result you expect?

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

    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.

  • rashantha Profile Picture
    65 on at

    @eka24 

     

    SalesPersonJanFebMarchAprilMay
    name@domain.com30,000.0060,00080,00090,00050,000

     

    So if the current month is May,

    I want to show only cols: May, April, March in the Data Table

  • rashantha Profile Picture
    65 on at

    For anyone that stumbles upon this in a Data Table you can hide a col in the view criteria of each col.

    So you would test with Month(Today())-3 if you wanted to the last 3 months.

     

    There might be a better way but I ended up using a switch statement and turned visible to false from true.

     

    I might be switching this to gallery view so back to the drawing board.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard