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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Continued Contributor
Continued Contributor

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
Continued Contributor
Continued Contributor

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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