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

Create Measure Stock Balance

https://mega.nz/#!QY1lXDoQ!8-c8qyvgNYa7HVzxdV---3-MQQOpyKchieMGHGe-CLk

 

Hello my friends, I'm breaking my head with this measure, I need to calculate the stock balance(SALDO), grouping by store(idiloja), product(iditem) and date mov(iddata_movimento). In database, I got sucess with this consult. How do I create this measure in DAX?database

 

In attachment i have make a test pbix file.

 

1 ACCEPTED SOLUTION

Sorry, this post is already being canceled, but I can not find the option to cancel.

View solution in original post

2 REPLIES 2
v-sihou-msft
Employee
Employee

@leudyston

 

I have checked your .pbix file. Your SALDO measure alreadu calculate "SUM(fmovimentos[mov_estoque])" group on store(idiloja), product(iditem) and date mov(iddata_movimento). When you put all those three fields into visual, these fields will slice this measure so that it returns same result as "Mov Estoque".

 

2.PNG

 

If this is not the result you want, please share your expected result. 

 

Regards,

 

 

Sorry, this post is already being canceled, but I can not find the option to cancel.

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.