cancel
Showing results for
Did you mean:
Helper II

## Creating a Dashboard using powerapps

I have a powerapp that the users input their data and it is working.

Now i have a task to do some calculations about the data from the first powerapp.  I want to just display this so i created another powerapp that pulls the connection from the SharePoint list of the first powerapp.

I need do some calculations but not sure how to get the data i need onto the fields.

I am stuck on 3 calculations.

1. MTD (Est value) i need to only get the current month est value based upon that fields due date.  I thought i could filter by duedate, Month(Now()) to get the items date but it says  it expects a text value???  I thought I would get the est contract value label i have and then filter it by the due date?

I will start with  this can anyone help??? I am working on a deadline.

13 REPLIES 13
Community Champion

Like this...

Filter(‘Estimating Template’, Year(DueDate)=Year(Today()), Month(DueDate)=Month(Today()))

If you have any questions about how to do the other 2 calculations you mentioned please start a new thread instead of asking more on this post 🙂

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Continued Contributor

I believe what you want is a look up instead of a filter. LookUp takes at least 2 parameters.

1. The first one is the source (Estimating List),
2. The second is the formula you want to base you look up on. In your case, you want to check the due date month is same as current month.
3. And the rest of the arguments are the fields you want from that look up. In you case you want MTD est value.
``LookUp('Estimating List', DueDate = Text( Now(), "mmmm" ), <MTD>)``

Now this formula is also complete, except for two things:

1. Make sure date format is correct. I am using "mmmm", This will return the full name of the month like "June'" not "Jun", not "06" or "6". You should make sure what format you due date is in so you can compare the properly. You can look up other date formats here
2. Make sure column name is correct. Secondly, I do not know the name of the column in your "Estimating List" which represents the est contract value. I left it as "MTD", but you should find out which column you need.

Hope this helps!

Helper II

I left off the part that calculates the est contract value in the formula.

I have the formula working that calculates the est contract value how to i add this field to the formula so that the filter applies to only those values??

EstcontractValuesTotal = Sum('Estimating List', Text(EstContractValue, "[\$-en-US]\$#,###0.00"))

can i use the estcontractvaluestotal field??But how??

Community Champion

Like this...

``Text(Sum(Filter(‘Estimating Template’, Year(DueDate)=Year(Today()), Month(DueDate)=Month(Today())),EstContractValue),"[\$-en-US]\$#,###0.00")``

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Continued Contributor

Okay. Looking at the formula, it looks like there are multiple records that could have the same due date month and you want the sum of the MTD for that month. In that cases you do need a filter:

``Sum(Filter('Estimating List', DueDate = Text( Now(), "mmmm" )), Text(EstContractValue, "[\$-en-US]\$#,###0.00"))``

Again you still need to fix the date format and I do not know the type of DueDate. Is it Date type or is it Text type?

Helper II

The Due Date is a Date Type field. I removed the friendly version that SharePoint offers.

I enter the formula as you have it and i do not get a result.  The June MTD total should be 2650000.

Helper II

Continued Contributor

Okay. I think the date comparison is not be working. Let's try this:

``Text(Sum(Filter('Estimating List', Text(DueDate,"m-yy") = Text(Now(), "m-yy")), EstContractValue)), "[\$-en-US]\$#,###0.00"))``

Helper II

I updated the formula you provided and i do not get any results.  See attached screenshot.

I am getting a message: incompatible type.  We cant evaluate your formula because the values being compared in the formula arent the same type.

I am not sure how to proceed. The estcontractvalue is a number field. duedate is a date field. Date is displayed as 6/2/2020.

Announcements

#### Power Platform Connections - Episode 7 | March 30, 2023

Episode Seven of Power Platform Connections sees David Warner and Hugo Bernier talk to Dian Taylor, alongside the latest news, product reviews, and community blogs.     Use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show.

#### Announcing | Super Users - 2023 Season 1

Super Users – 2023 Season 1    We are excited to kick off the Power Users Super User Program for 2023 - Season 1.  The Power Platform Super Users have done an amazing job in keeping the Power Platform communities helpful, accurate and responsive. We would like to send these amazing folks a big THANK YOU for their efforts.      Super User Season 1 | Contributions July 1, 2022 – December 31, 2022  Super User Season 2 | Contributions January 1, 2023 – June 30, 2023    Curious what a Super User is? Super Users are especially active community members who are eager to help others with their community questions. There are 2 Super User seasons in a year, and we monitor the community for new potential Super Users at the end of each season. Super Users are recognized in the community with both a rank name and icon next to their username, and a seasonal badge on their profile.    Power Apps  Power Automate  Power Virtual Agents  Power Pages  Pstork1*  Pstork1*  Pstork1*  OliverRodrigues  BCBuizer  Expiscornovus*  Expiscornovus*  ragavanrajan  AhmedSalih  grantjenkins  renatoromao    Mira_Ghaly*  Mira_Ghaly*      Sundeep_Malik*  Sundeep_Malik*      SudeepGhatakNZ*  SudeepGhatakNZ*      StretchFredrik*  StretchFredrik*      365-Assist*  365-Assist*      cha_cha  ekarim2020      timl  Hardesh15      iAm_ManCat  annajhaveri      SebS  Rhiassuring      LaurensM  abm      TheRobRush  Ankesh_49      WiZey  lbendlin      Nogueira1306  Kaif_Siddique      victorcp  RobElliott      dpoggemann  srduval      SBax  CFernandes      Roverandom  schwibach      Akser  CraigStewart      PowerRanger  MichaelAnnis      subsguts  David_MA      EricRegnier  edgonzales      zmansuri  GeorgiosG      ChrisPiasecki  ryule      AmDev  fchopo      phipps0218  tom_riha      theapurva  takolota     Akash17  momlo     BCLS776  Shuvam-rpa     rampprakash  ScottShearer     Rusk  ChristianAbata     cchannon  Koen5     a33ik   Heartholme     AaronKnox        Matren        Alex_10        Jeff_Thorpe        poweractivate        Ramole        DianaBirkelbach        DavidZoon        AJ_Z        PriyankaGeethik        BrianS        StalinPonnusamy        HamidBee        CNT        Anonymous_Hippo        Anchov        KeithAtherton        alaabitar        Tolu_Victor        KRider        sperry1625        IPC_ahaas      zuurg    rubin_boer   cwebb365   Dorrinda   G1124   Gabibalaban   Manan-Malhotra   jcfDaniel   WarrenBelz   Waegemma      If an * is at the end of a user's name this means they are a Multi Super User, in more than one community. Please note this is not the final list, as we are pending a few acceptances.  Once they are received the list will be updated.

#### Microsoft Power Platform Conference | Registration Open | Oct. 3-5 2023

We are so excited to see you for the Microsoft Power Platform Conference in Las Vegas October 3-5 2023! But first, let's take a look back at some fun moments and the best community in tech from MPPC 2022 in Orlando, Florida.   Featuring guest speakers such as Charles Lamanna, Heather Cook, Julie Strauss, Nirav Shah, Ryan Cunningham, Sangya Singh, Stephen Siciliano, Hugo Bernier and many more.   Register today: https://www.powerplatformconf.com/

#### Check out the new Power Platform Communities Front Door Experience!

We are excited to share the ‘Power Platform Communities Front Door’ experience with you!   Front Door brings together content from all the Power Platform communities into a single place for our community members, customers and low-code, no-code enthusiasts to learn, share and engage with peers, advocates, community program managers and our product team members. There are a host of features and new capabilities now available on Power Platform Communities Front Door to make content more discoverable for all power product community users which includes ForumsUser GroupsEventsCommunity highlightsCommunity by numbersLinks to all communities Users can see top discussions from across all the Power Platform communities and easily navigate to the latest or trending posts for further interaction. Additionally, they can filter to individual products as well.       Users can filter and browse the user group events from all power platform products with feature parity to existing community user group experience and added filtering capabilities.     Users can now explore user groups on the Power Platform Front Door landing page with capability to view all products in Power Platform.    Explore Power Platform Communities Front Door today. Visit Power Platform Community Front door to easily navigate to the different product communities, view a roll up of user groups, events and forums.