Forum Discussion
Thigs
4 years agoHelper IV
Counting for days between?
Hi! I have four columns in my dataset. The first is Order Number, the second is Number of Boxes, the third is the Packed Date, the fourth is the date it was Shipped Date. What I want to find is h...
- 4 years ago
Thigs , You need to follow a approach like this
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
amitchandak
4 years agoSuper User
Thigs , You need to follow a approach like this
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Thigs
4 years agoHelper IV
Hi!
This is mostly working, but I wanted to post it here just in case I did something wrong, as I did have to massage the formula a little -
Current Boxes = CALCULATE(SUMX(FILTER('Pack and Hold','Pack and Hold'[Pack Date]<=max('Date'[Date]) && (ISBLANK('Pack and Hold'[Ship Date]) || 'Pack and Hold'[Ship Date]>(max('Date'[Date])-1))),('Pack and Hold'[Boxes])),CROSSFILTER('Pack and Hold'[Pack Date],'Date'[Date],None))
The main thing I changed was changing it to a sumx instead of countx and also making the ship date > max of the date -1, as I needed to include the date it was shipping as a day we are hanging onto the box, as we are hanging onto it for at least part of that day. Is that how I would do that?
The main thing I changed was changing it to a sumx instead of countx and also making the ship date > max of the date -1, as I needed to include the date it was shipping as a day we are hanging onto the box, as we are hanging onto it for at least part of that day. Is that how I would do that?