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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
Microsoft Employee
Microsoft 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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