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
Johan3ngholm
Frequent Visitor

Dynamic Stock turnover report

Hi, I'm trying to do a dynamic stock turnover report in Power BI

I do have a table like the one called StockBalancePerDateTable and I need a DAX formula that gives me a New Table based on the date i choose, in this case it's 2018-01-29. I want the NewTable to show the latest stockbalance from the date I choose.

 

 

 

 

 

StockBalancePerDateTable.JPGNewTable.JPG

 

 Thanks in advance

/Johan

 

 

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi Johan3ngholm,

 

Create a new table using DAX like this:

 

New Table =
FILTER ( Table, Table[Date] <= "2018-01-29" )

Regards,

Jimmy Tao

Thanks

 

I have two issues with your sollution. First of all I can't filter when the column is formated as date. I solved this with a duplicate of the date column formated as number. 

 

Next problem is that I get all records before the date that i choose. I only wants the latest of each article

NewTable_2.JPG

 

Best regards 

/Johan

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.