The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello,
Taking this COD_UID as
How can I perform a datediff in seconds between the dates with the status shipped and the dates with the status Packed for the same COD_UID?7
Sample here: Sample
Solved! Go to Solution.
Hi @Anonymous ,
Please try:
Measure =
var _a = CALCULATE(MAX('Table'[Picking Time_]),FILTER('Table',[STATUS]="SHIPPED"))
var _b = CALCULATE(MAX('Table'[Picking Time_]),FILTER('Table',[STATUS]="PACKED"))
return DATEDIFF(_a,_b,SECOND)
Output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please try:
Measure =
var _a = CALCULATE(MAX('Table'[Picking Time_]),FILTER('Table',[STATUS]="SHIPPED"))
var _b = CALCULATE(MAX('Table'[Picking Time_]),FILTER('Table',[STATUS]="PACKED"))
return DATEDIFF(_a,_b,SECOND)
Output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |