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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Matt78
Helper II
Helper II

How to find valid starting date of an item?

Hi all,

 

I have an issue where we have item sales which are calculated by quantity x current price. The difficulty is that our item prices changes few times a year as seen in screen shot.

 

For example if posting date is 30.6. the price for item 5230 should be calculated with price 9,32 and the next day it should be 9,45

 

Could you help me to write DAX where Power BI could use a valid price

 

Matt78_0-1686808003211.png

 

Thank you for all the help beforehand 🙂 

BR

Matti

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

Your prices for today (14.06.2023) will be the:

Screen Capture #1250.png

View solution in original post

4 REPLIES 4
Matt78
Helper II
Helper II

Prices will change in about few weeks, right now I have manually filtered to use prices which have starting date before 1.7. If I don't do that, there will be double prices (1.4-30.6. & 1.7.-31.12.)

 

I have 2 data sources, Item Entries (Quantity) and Purchase Prices (Unit Cost EUR).

Matt78_0-1686730131497.png

 

you posted other data above

Share sample pbix file to help you.

Hi

 

I couldn't attach any files but I hope this clears some more 🙂

 

Report should pick the correct purchase price what is used as posting date in item entries.

Matt78_0-1686735550883.png

 

br

Matt

 

 

Ahmedx
Super User
Super User

Your prices for today (14.06.2023) will be the:

Screen Capture #1250.png

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors