Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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 ?
Good question. I think a dynamic measure will be the best solution.
Are you asking for a dynamic measure or a calculated column? It's not clear what you're after...