cancel
Showing results for 
Search instead for 
Did you mean: 
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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.