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
Anonymous
Not applicable

How to return the value only of table cell data

Hello World,

 

I am working on creating an inventory visual that shows the levels of stock in our warehouse. The issue I am facing is the data adds multiple dates then returns the value.

 

Example: 

3/28   5 units

3/29   5 units

3/30   6 units

 

What ends up happening is the return is usually all the units combined when I am doing it by month & year date filter. However only one addition unit was added to the warehouse and I only want it to show we have 6 units and not 16.

 

I figure I would need to calulate then filter the data by dates but not sure exactly what else I may need. If this has been posted already, please point me in that direction or if you could assist with solving I would appreciate.

 

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

So you want the latest number of units? Then you'll likely want a measure similar to this:

Units =
VAR _MaxDate = MAX ( Table1[Date] )
RETURN
    CALCULATE ( SUM ( Table1[Units] ), Table1[Date] = _MaxDate )

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks a lot for the help.

AlexisOlson
Super User
Super User

So you want the latest number of units? Then you'll likely want a measure similar to this:

Units =
VAR _MaxDate = MAX ( Table1[Date] )
RETURN
    CALCULATE ( SUM ( Table1[Units] ), Table1[Date] = _MaxDate )
Anonymous
Not applicable

@AlexisOlson 

 

I am going to text this out and get back to you if this solves it. Thanks for the help

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.