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
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
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.