Forum Discussion
Counting changes between different status'
Hi bgepps,
I have an idea to deal with your requirement, perhaps you can take a look at below steps if it works on your side.
Steps:
1. Get the Current "Job ID" from row content.
2. Look up the records which contain current job id, and remove the duplicate records.
3. calculated the rows of above records, if the result is large than 1, it means the job id's status is changed.
4. Loop through the table with above logic and get the count of changed job id.
Sample:
IsChanged = var temp = LASTNONBLANK(Table[JobID],[JobID]) var CountOfJobID= COUNTROWS(DISTINCT(FILTER(ALL(Table),[JobID]=temp))) return if(CountOfJobID>1,TRUE(),FALSE()) CountOfChangedID = CALCULATE(DISTINCT(Table[JobID]),FILTER(ALL(Table),[IsChanged]=TRUE()))
Regards,
Xiaoxin Sheng
- bgepps9 years agoFrequent Visitor
Hi Anonymous,
Thanks for your insight. I think the easy way to do this is create an average of the 'Amends' status that appears. I can get a count of the amount of times 'Amends' is selected, but can't work out how to calculate an average from that count.
Do you know how to do this?
Thanks,
Ben
- Anonymous9 years agoNot applicable
Hi bgepps.
>> I think the easy way to do this is create an average of the 'Amends' status that appears. I can get a count of the amount of times 'Amends' is selected, but can't work out how to calculate an average from that count.
You can get the count of specific state, then use above count to divide the distinct count of job id.
Regards,
Xiaoxin Sheng