Forum Discussion
Demo Challange Matrix
- 2 years ago
Hi PowerRobots99 I think I have Friday fatigue...
Completed date =var selDate = LASTDATE(Data[ReportDate]) --Capture current Report Datevar lastweek = DATEADD(selDate,-7,DAY)var filDate =CALCULATETABLE( --modify filtersFILTER(Data, [TransActualCompletionDate] > lastweek &&[TransActualCompletionDate] <= selDate)--only return rows after last week (excl 04) and to this week (inc 11/08),Data[ReportDate] = selDat--keep current report filter)RETURNCOUNTROWS(filDate)
Thank you SamWiseOwl, Excellent approach, really appreciate your response.
Could you please let me know if there is any way to find out number of transactions that were scheduled between (5 Aug-11 Aug) AND also completed between (5 Aug-11 Aug),
To find out scheduled transactions between (5 Aug-11 Aug), we referred data that had uploaded on report date - 8/4/2024 in earlier step,
However, To find out completed transactions between (5 Aug-11 Aug), we have to refer data that have been loaded on report date - 8/11/2024.
- SamWiseOwl2 years ago
Super User
Completed date =var selDate = LASTDATE(Data[ReportDate]) --Capture current Report Datevar filDate =CALCULATETABLE( --modify filtersFILTER(Data, [TransScheduleCompletionDate] > lastweek &&[TransScheduleCompletionDate] <= selDate)--only return rows after last week (excl 04) and to this week (inc 11/08),Data[ReportDate] = selDat--keep current report filter)RETURNCOUNTROWS(filDate)Sounds like you just remove the last week filter- PowerRobots992 years ago
Helper II
I believe that is not correct,
We have to find out number of transactions that were scheduled from 5 Aug to 11 Aug by considering data with report date- 8/4/2024
AND
also completed between (5 Aug-11 Aug) by considering data uploaded on 8/11/2024,
Both conditions should meet,
Now, to find out completed transactions from 5th and 11 Aug, we have to use "TransActualCompletionDate"
In above measure, we haven't done that.
- SamWiseOwl2 years ago
Super User
Hi PowerRobots99 I think I have Friday fatigue...
Completed date =var selDate = LASTDATE(Data[ReportDate]) --Capture current Report Datevar lastweek = DATEADD(selDate,-7,DAY)var filDate =CALCULATETABLE( --modify filtersFILTER(Data, [TransActualCompletionDate] > lastweek &&[TransActualCompletionDate] <= selDate)--only return rows after last week (excl 04) and to this week (inc 11/08),Data[ReportDate] = selDat--keep current report filter)RETURNCOUNTROWS(filDate)