well its not precisely calculating the number of days between dates but here we go..
Im new to power pivot and Im uploading everyday a list of trips done by a transportation company, i have no idea of how to calculate the number of trips in every stage, this is the info i have :
[TABLE="width: 500"]
<tbody>[TR]
[TD]trip route[/TD]
[TD]requirementdate[/TD]
[TD]departuredate[/TD]
[TD]arrivaldate[/TD]
[/TR]
[TR]
[TD]los angeles- dallas[/TD]
[TD]08/10/14[/TD]
[TD]08/11/14[/TD]
[TD]08/13/2014[/TD]
[/TR]
[TR]
[TD]los angeles- dallas[/TD]
[TD]08/12/14[/TD]
[TD]08/12/14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]san francisco-vegas[/TD]
[TD]08/09/14[/TD]
[TD]08/10/14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]vegas-dallas[/TD]
[TD]08/12/14[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
and here is what i need:
[TABLE="width: 500"]
<tbody>[TR]
[TD]trip route[/TD]
[TD]num of trips in Reqdate[/TD]
[TD]num of trips in Depdate[/TD]
[TD]num of trips in Arrivaldate[/TD]
[/TR]
[TR]
[TD]los angeles- dallas[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]san francisco-vegas[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]vegas-dallas[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
When i just drag the Reqdate o Depdate to the values field i will just give me the count of trips,but i want the trip that is already in the arrival date, not to show in the previous stages.
Im assuming I would do it with dax, but any clue u can provide would be apreciated.
Thanks!
Im new to power pivot and Im uploading everyday a list of trips done by a transportation company, i have no idea of how to calculate the number of trips in every stage, this is the info i have :
[TABLE="width: 500"]
<tbody>[TR]
[TD]trip route[/TD]
[TD]requirementdate[/TD]
[TD]departuredate[/TD]
[TD]arrivaldate[/TD]
[/TR]
[TR]
[TD]los angeles- dallas[/TD]
[TD]08/10/14[/TD]
[TD]08/11/14[/TD]
[TD]08/13/2014[/TD]
[/TR]
[TR]
[TD]los angeles- dallas[/TD]
[TD]08/12/14[/TD]
[TD]08/12/14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]san francisco-vegas[/TD]
[TD]08/09/14[/TD]
[TD]08/10/14[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]vegas-dallas[/TD]
[TD]08/12/14[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
and here is what i need:
[TABLE="width: 500"]
<tbody>[TR]
[TD]trip route[/TD]
[TD]num of trips in Reqdate[/TD]
[TD]num of trips in Depdate[/TD]
[TD]num of trips in Arrivaldate[/TD]
[/TR]
[TR]
[TD]los angeles- dallas[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]san francisco-vegas[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]vegas-dallas[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
When i just drag the Reqdate o Depdate to the values field i will just give me the count of trips,but i want the trip that is already in the arrival date, not to show in the previous stages.
Im assuming I would do it with dax, but any clue u can provide would be apreciated.
Thanks!