Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SamBrown17
Helper I
Helper I

Multiple Dates within one data set calculation

Hi Team,

 

I hope you can help, I have a table with 3 different sales items

Assessing, Tendering and Works

They each have 3 different payments dates within the one table

 

I want to get the sum of all of them per month and also the average of all of them as one figure per month.

The average cost and the sum as a total query is easy enough, I just cant do it per month as I can only have one relationship and if I filter to one date it only gives me the average cost of only that item.

 

So I calculate the total average over the 3 items for the entire table

AVERAGE('reporting jobs'[assessment_repairCost])+AVERAGE('reporting jobs'[jobAmount])+AVERAGE('reporting jobs'[finalTenderAmount])/(COUNT('reporting jobs'[assessment_repairCost])+COUNT('reporting jobs'[jobAmount])+COUNT('reporting jobs'[finalTenderAmount]))
 
How do I do it per month when there is 3 different dates for each Assessing Cost, jobamount and final tender amount?
3 REPLIES 3
SamBrown17
Helper I
Helper I

Assessing CostAssessing Invoice DateTender CostTender invoice dataRepair CostRepair Invoice Cost
11/03/2021423/06/20211001/01/2021
22/03/2021624/06/20212002/01/2021
33/03/2021525/06/20213003/01/2021
44/03/2021426/06/20214004/01/2021
55/03/2021627/06/20215005/01/2021
66/03/2021728/06/202166006/01/2021
77/03/2021329/06/20212337/01/2021
88/03/2021430/06/20212348/01/2021

 

I want to Reference an average cost of all 3 revenue streams but I can use one date type otherwise I lose the other 2 revenues.

v-kelly-msft
Community Support
Community Support

Hi @SamBrown17 ,

 

Could you please provide some sample data with expected output?

 


Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

RJ251997
Helper I
Helper I

Hi @SamBrown17 ,

Good Morning 

please go to that link its helpful for you.

https://blog.enterprisedna.co/working-with-multiple-dates-in-power-bi/

Thank &Reagrds 

Rohit Jaiswal

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors