Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Create Sample table based on users Productivity

Hi Expert 

i had question that i want to get random table before, but the answer doesn,t work in my project

what i want to ask is 
from source data like this : 

ZFD__1-1633419127385.png

 

 

 hope can generate the Productivity by "username Ori" which mean = count by username

and from that productivity i want to get the 3% (productivity * 0.03) like this : 

ZFD__1-1633420953991.png

 

 


and then I want to have Random sample table based on 3% measurement from

ZFD__0-1633420908264.png

 

productivity each user like below. 

 

 

please help, the data is attached

 

>>> DataSource <<<

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous ,Is

countrows(Table)*.03

 

not working as a measure ?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

hi @amitchandak 

it works fine, but then i want to have random sample table based on that, 
can you help me?

I would do like

 

divide(roundup(rand()*10,0),3) 

 

and would have using 0 as a sample

 

Also, refer

 

https://community.powerbi.com/t5/Desktop/DAX-random-sample/m-p/386571

https://chandoo.org/wp/power-query-random-sample/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak 

I tried all those things but still not as expected,

the random table must be dynamic based on 3% of users productivity, 
if user "sabillat" have 1, then in random table have 1 row, 
if she have 2, then the table have 2 rows.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.