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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
leudyston
Helper I
Helper I

Calculating Current Stock with Filters

Hello friends, this is the measure I am using to calculate the CURRENT STOCK OF STORES, being that I need to filter only the stock of the stores that have moved in the stock at least until ten days ago or stock of Stores with active register. My measurement is working correctly in the First table, but in the second table when filtering more than one store it is repeating the ESTOQUE ATUAL for all stores. The correct thing is that each store has its ESTOQUE ATUAL and the sum of these stocks is the TOTAL that is in the First Table.

 

Estoque Atual = CALCULATE([Estoque];FILTER(ALLSELECTED(dlojas);[Data Estoque]>=TODAY()-10||dlojas[status]="INATIVO"))

 

I need your help to identify where the error is in my measure ESTOQUE ATUAL.

 

I am making the .pbix file available

File .pbix

Thanks and Merry Christmas

 

 

image.jpg

 

1 ACCEPTED SOLUTION
leudyston
Helper I
Helper I

Okay I solved !!

 

Estoque Atual = CALCULATE([Estoque];FILTER(dlojas;[Data Estoque]>=TODAY()-10||dlojas[status]="INATIVO"))

 

View solution in original post

2 REPLIES 2
RooseveltDorea
New Member

Olá boa noite, estou quebrando a cabeça para criar uma fórmula para calcular a cobertura de estoque e giro. Pode ajudar?

Abraços

leudyston
Helper I
Helper I

Okay I solved !!

 

Estoque Atual = CALCULATE([Estoque];FILTER(dlojas;[Data Estoque]>=TODAY()-10||dlojas[status]="INATIVO"))

 

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.