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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
BrandonG
New Member

Inventory Count from Count in a Date Range

I have two tables, Date and Inventory. Inventory is a distinct look at inventory with a New date and Sold Date attached. Is there a way to take the Date from the Date Table and count how many times it shows up in the New and Sold ranges. This will give me how much was in inventory on those days.

 

Inventory Table

IDNewSold
478836026.23.20227.01.2022
416225227.01.20227.01.2022
451818825.20.20227.02.2022
481053027.01.20227.03.2022
438555726.08.20227.05.2022
503162426.30.20227.05.2022
503010827.01.20227.05.2022
503968727.01.20227.05.2022
501378627.05.20227.05.2022
412364325.16.2022

7.06.2022

 

If I look at date 6/08 it would show 3 in inventory, 7/01/2022 would show 9 in inventory

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you, this solved a weeks worth of headaches

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
vicky_
Super User
Super User

You can try just use a simple matrix with [New] as a row, and then the count of [New] as the value. And then do the same for Sold.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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