Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I need to filter my table so it only shows 15% of the lines in my table at random (sample round down). Thanks!
Folder |
C1 |
C2 |
C3 |
C4 |
C5 |
C6 |
C7 |
C8 |
C9 |
C10 |
C11 |
C12 |
C13 |
C14 |
C15 |
Ex :
C3 |
C6 |
Hi @NumeroENAP
Interesting request. Try creating a new calculated table. It will get closer to 15% as the number of rows grows:
NewTable = FILTER ( Table1, RAND () <= ( 15 / 100 ) )
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
In my case, I would prefer a measure, because I can only access to production data (in consultation only). So, I can't create a table. Also, this table is in relation with other dimension tables (ex : results).
@AlB wrote:Hi @NumeroENAP
Interesting request. Try creating a new calculated table. It will get closer to 15% as the number of rows grows:
NewTable = FILTER ( Table1, RAND () <= ( 15 / 100 ) )
Please mark the question solved when done and consider giving kudos if posts are helpful.
Cheers
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |