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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

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.
Phil_Seamark
Employee
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.