Forum Discussion
Create Random Sample table based on user Productivity
- Anonymous5 years ago
Hi Anonymous ,
I created the data:
Here are the steps you can follow:
1. Create measure.
Count_measure = COUNTX(FILTER(ALL('Table'),MAX('Table'[Username])='Table'[Username]&&'Table'[ID NO]>MAX('Table'[ID NO])),'Table'[Gen ID])Result = IF(MAX('Table'[Sample])>=[Count_measure]&&NOT(ISBLANK([Count_measure])),1,0)Result:
2. Place Measure[Result] in Filter, set is =1, apply filter.
3. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
I created the data:
Here are the steps you can follow:
1. Create calculated column.
Column = COUNTX(FILTER('Table',EARLIER('Table'[Username])='Table'[Username]&&'Table'[ID NO]>EARLIER('Table'[ID NO])),'Table'[Gen ID])
2. Create calculated table.
Table 2 =
FILTER('Table','Table'[Sample]>='Table'[Column]&&NOT(ISBLANK('Table'[Column])))
3. Result.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HI Anonymous
thanks for your help, but ican't follow this step
1. Create calculated column.
there is no Countx Option, probably its because im using "direct query" mode in connection.
is there any other way to solve it.
thank you