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.
Dear All ,
We want to create Opening Stock as per given Input date by User. how to achieve it. please suggest. for example.
ITEMNAME | DATEPHYSICAL | QTY |
GV500-1502161 | 30-06-2016 | 27 |
GV500-1502161 | 02-07-2016 | -15 |
GV500-1502161 | 06-07-2016 | 1 |
GV500-1502161 | 24-07-2016 | 1 |
GV500-1502161 | 25-07-2016 | 1 |
GV500-1502161 | 10-08-2016 | 1 |
GV500-1502161 | 11-08-2016 | 4 |
GV500-1502161 | 17-08-2016 | 1 |
GV500-1502161 | 28-08-2016 | -13 |
GV500-1502161 | 15-09-2016 | -4 |
GV500-1502161 | 22-12-2016 | -1 |
GV500-1502161 | 06-04-2017 | -3 |
if we Select date (07-07-2016) then Opening stock show as 13 how to achieve it please help.
Solved! Go to Solution.
Hi, try with this:
Assuming that you have a calendar table to your selection date. (Don't related to your table)
OpeningStock = CALCULATE ( SUM ( Table2[QTY] ), FILTER ( Table2, Table2[DATEPHYSICAL] < SELECTEDVALUE ( CalendarTable[Date] ) ) )
Regards
Victor
Lima Peru
Hi, try with this:
Assuming that you have a calendar table to your selection date. (Don't related to your table)
OpeningStock = CALCULATE ( SUM ( Table2[QTY] ), FILTER ( Table2, Table2[DATEPHYSICAL] < SELECTEDVALUE ( CalendarTable[Date] ) ) )
Regards
Victor
Lima Peru
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 |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |