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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Lund
Frequent Visitor

Total running - filters

Hi

I have this messaure that works fine in my totals.

_Cuml Stock Value NEW = 

CALCULATE (

    SUMX ('Item ledger Entry' , RELATED(Products[Internal Cost]) * ('Item ledger Entry'[Quantity]) ),

    FILTER ( ALL( 'Item ledger Entry'), 'Item ledger Entry'[Posting Date] <= MAX ('Item ledger Entry'[Posting Date])  )

)
 
But see here, if i try to get the stock value by [Item Tracking Code] i don't get the corect result.
In this example, should [_Cuml Stock Value NEW] be se same as the value in the coulm [Stock Value]
bi1.png
 
Here is my tables and relations
 
bi 3.png
 
Can you see what is wrong here?
1 ACCEPTED SOLUTION
NikhilChenna
Skilled Sharer
Skilled Sharer

Hi @Lund ,

In the dax code where you are using 

FILTER(ALL('Item Ledger Entry'[Item Tracking Code] add the column name too, hope this should work.

 

Regards,

Nikhil Chenna

 

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

View solution in original post

1 REPLY 1
NikhilChenna
Skilled Sharer
Skilled Sharer

Hi @Lund ,

In the dax code where you are using 

FILTER(ALL('Item Ledger Entry'[Item Tracking Code] add the column name too, hope this should work.

 

Regards,

Nikhil Chenna

 

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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