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 / using Trend Formula in...
Power Apps
Unanswered

using Trend Formula in power apps

(0) ShareShare
ReportReport
Posted on by 14

Screenshot 2024-03-01 190439.pngi have 2 SharePoint connected with power apps as like the below table 

fist one on Share point called Targets 

MonthDepKPINameTargetScore
JanMOPLTYL47%35
JanMOPLTYL43%30
JanMOPLTYL38%10
JanMOPLTYL32%0

second table called table result 

MonthDepEmpnameTYLTYL Result
JanMOPLEmp152.00%35.0
JanMOPLEmp257.00%35.0
JanMOPLEmp364.00%35.0
JanMOPLEmp437.00%9.0
JanMOPLEmp5100.00%35.0
JanMOPLEmp658.00%35.0

 

the highlighted bule one i used this formula in excel =@IF(H9<=$H$5,$I$5,IF(H9>=$H$2,$I$2,IF(AND(H9<$H$2,H9>=$H$3),TREND($I$2:$I$3,$H$2:$H$3,H9),IF(AND(H9<$H$3,H9>=$H$4),TREND($I$3:$I$4,$H$3:$H$4,H9),IF(AND(H9<$H$4,H9>=$H$5),TREND($I$4:$I$5,$H$4:$H$5,H9))))))

i need to apply the same formula in power aps or SharePoint to get the same result 

Categories:
I have the same question (0)
  • RogierE Profile Picture
    879 Moderator on at

    Calculating a trend over different records in the SharePoint list or in the PowerApp will be quite a hassle. Excel is far better in that. Have you considered leaving the calculation in Excel and just using that as a source for your PowerApp in stead of the List? 

    ("Better not try to hammer a nail down with a spoon" I would say ) 

     

    Please like the reply and/or accept it as the solution if the answer is what you were looking for.

  • HRawash2 Profile Picture
    14 on at

    yes but i have aloft of department and each one have diff rent calculation so i'm thinking of something like dynamic calculation with  power apps tool

  • RogierE Profile Picture
    879 Moderator on at

    If you would want to get to dynamic calculation, PowerBI might be a better domain to search your solution. Are you familiar with DAX in PowerBI? 

    Check out this post for example: How To Do Trend Analysis In Power BI Using DAX | Master Data Skills + AI (enterprisedna.co)

     

    Please like the reply and/or accept it as the solution if the answer is what you were looking for.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard