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.
Hello there;
I need your help on something.
I want to calculate the daily stock amount by using the daily amount of incoming and outgoing products in logistics warehouses.
What kind of formula should I write?
the calculation is as follows...
.
thank you
have a nice day.
Solved! Go to Solution.
I can't read the columns in your dispatch and receding tables, so you will have to swap those out.
place the Date[Date] column in your visual, then ther measure
=calculate(sum(receiving[in]) - sum(dispatch[out]),filter(all(Date),Date[date] <=max(Date[date])))
DAX is all about filtering. You need to filter the table so it keeps just the records you need. Something like
=calculate(sum(table[in]) - sum(table[out]),filter(all(table),table[date] <=max(table[date])))
Dear Matt.
Thank you. but which table should I choose in "filter(all (table)"?
I could not fully understand.
I can't answer that question - you haven't provided any information about your tables.
I have three separate tables. Date, Dispatch and Receiving. The Date table is related with other tables.
I can't read the columns in your dispatch and receding tables, so you will have to swap those out.
place the Date[Date] column in your visual, then ther measure
=calculate(sum(receiving[in]) - sum(dispatch[out]),filter(all(Date),Date[date] <=max(Date[date])))
Dear Matt
This formula worked.
Thank you so much.
Regards
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
53 | |
21 | |
13 | |
11 |