cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MaTa
New Member

cost price AVERAGEX function with "date from" and "date until" search

Hi,

I am searching for a possibility to calculate the average cost of a product in relation to a selected period (month and year).

In the data model I get standard purchase price for each item, but only the current one without historical values.

So I try to pick up the purchase price from the PurchaseInvoiceLines.

How can I calculate an average for each item by period selection (month and year), to get all purchase prices from 1st of June 2021 until 30th of June 2021 for example.

What is the solution with a DAX formula to get this done ?

 

 

2 REPLIES 2
MaTa
New Member

Good question. I think a dynamic measure will be the best solution.

daxer
Solution Sage
Solution Sage

Are you asking for a dynamic measure or a calculated column? It's not clear what you're after...

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.