Forum Discussion
Anonymous
5 years agoNot applicable
Create Random Sample table based on user Productivity
Hello guys i have productivity table for all users as below and i create calculated measure 3% like "sample = COUNT(productivity_table[ID No])*0.03"...
- 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.
amitchandak
Super User
5 years agoAnonymous , the expected output is not clear. Can you explain that with an example
- Anonymous5 years agoNot applicable
Hi amitchandak
reffering to "total sample" table, the example like this ;
username "nadyan" must have '2' (Based on sample 3% column in total sample table) random sample case,
so i want to get only 2 row data in Productivity table which handled by nadyanso are "fiegata" and any other user,
Thanks for your help.