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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to sort à calculat...
Power Apps
Unanswered

How to sort à calculated column

(0) ShareShare
ReportReport
Posted on by 51

Hi,

 

I've got a calculated column (datetime type) : 

fred_05100_0-1707336583062.png

It's using value from lookup table "type_demande".

I was very happy that it worked.

But now I'm facing an important issue : I can't sort on that column (because it's calculated according to what I read)

I could use flows but I need to use premium flows and I don't have the license.

Do you have any other solution to propose ?

 

Frederic

I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    on at

    HI @fred_05100,

    Currently, Power Apps does not support to sort calculated columns directly.

     

    You could try to calculate the date time directly in PowerApps, then save this calculated value into a temporary column by AddColumns(), finally you could sort by this temporary calculated column directly.

    SortByColumns(
     AddColumns(
     list,
     "CalculatedField"
     <your-datatime-calculated-formula>
     ),
     CalculatedField,
     Descending
    )
  • fred_05100 Profile Picture
    51 on at

    Hi,

    Thanks.

    You mean i should use JavaScript ?

  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @fred_05100,
    No, you don't need JavaScript, @v-qiaqi-msft post was assuming you were using canvas apps, not mode-driven apps. You can filter calculated columns out-of-the-box with views (see image below). What is the exact error you are having?

    EricRegnier_0-1707380125982.png

     

    BTW: you can use Power Automate if you have a Power Apps license (or D365) you can use Power Automate to automate logic related to these apps and Dataverse without separate Power Automate licenses.

     

    Another tip: calculated columns are getting deprecated, suggest using Formula columns if you can and it also supports sorting.

    Hope this helps!

  • Verified answer
    Jonathan Manrique Profile Picture
    2,687 on at

    Hi @fred_05100 

     

    The calculated columns will be replaced by the Power FX formula columns, where you will be able to perform the calculations.

    Work with Dataverse formula columns - Power Apps | Microsoft Learn

     

    Then if you can order it

    An important point is that for the moment we do not accept the currency.

     

    Jmanriquerios_0-1707383638093.png

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    You can accept more than one post as a solution
    Follow me on Linkedin, I talk about Power Platform
    www.linkedin.com/in/jonathan-manrique-rios

     

     

  • fred_05100 Profile Picture
    51 on at

    Hi Thanks,

  • fred_05100 Profile Picture
    51 on at

    Hi Thanks 

  • fred_05100 Profile Picture
    51 on at

    Hi,

    Thanks,

    When I perform a sort in a view as you suggest, It doesn't work.

    But I will try formula FX.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard