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.
- 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)- PowerRobots992 years ago
Helper II
Hi SamWiseOwl
Thank you for reply, i appreciate your response on this,
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)With this measure. we can get number of Transactions completed between 5th Aug and 11 Aug by referring report date - 8/11/2024
However, as i mentioned in a single measure, Both conditions should meet,
1st Condition - 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
2nd Condition- Number of transactions completed between (5 Aug-11 Aug) by considering data with report date - 8/11/2024,
Both conditions should meet,
However, measure devised by you only take care of second condition.