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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
IS
New Member

Inventory cube

Hello, I would like to use in the standard inventory cube the ending amount measure in order to follow in a graph total stock value date per date. It seems that is not possible to use this measure? Does someone could help me please?
2 REPLIES 2
MattAllington
Community Champion
Community Champion

In DAX, the general measure pattern is as follows 

 

Inventory :=
CALCULATE (SUM ( Inventory[StockCount] ),
LASTNONBLANK (Calendar[Date],CALCULATE ( SUM ( Inventory[StockCount] ) )))

 

this is pattern will work regardless of there being a count for every date (it will find the last count). 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Phil_Seamark
Microsoft Employee
Microsoft Employee

It will be possible but you will need to add a calculated measure to your cube.  Are you using Tabular or Multidimensional?  Both will work but one will use DAX while the other will need an MDX formula.


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.