cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

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
Highlighted
Super User
Super User

Re: Creating a Dashboard using powerapps

@tscott07 

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."

Highlighted
Continued Contributor
Continued Contributor

Re: Creating a Dashboard using powerapps

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!

Highlighted
Helper I
Helper I

Re: Creating a Dashboard using powerapps

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??

Highlighted
Super User
Super User

Re: Creating a Dashboard using powerapps

@tscott07 

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."

Highlighted
Continued Contributor
Continued Contributor

Re: Creating a Dashboard using powerapps

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? 

 

 

Highlighted
Helper I
Helper I

Re: Creating a Dashboard using powerapps

@ZabiBabar 

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.

 

 

Highlighted
Helper I
Helper I

Re: Creating a Dashboard using powerapps

 
Highlighted
Continued Contributor
Continued Contributor

Re: Creating a Dashboard using powerapps

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"))

 

Highlighted
Helper I
Helper I

Re: Creating a Dashboard using powerapps

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.

@ZabiBabar 

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (6,326)