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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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