Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
We have a large sales listing out of which we want to take random samples.
We would like to use a slicer which indicates the number of samples to be taken.
The slicer is based on a table including a list from 1 to 10.
Therefore we thought to use the following formulla:
Selection = SAMPLE( SELECTEDVALUE(SampleSize[SampleSize]), SalesFY18, SalesFY18[Invoice amount])
But this function is not working.
Could one of you maybe help me out?
Many thanks
Brecht
Hi @bdelaure,
SAMPLE() function returns a calculated table that lists a sample of N rows from the specified table. A calculated table is static once it has been initilized, won't be dynamically changed based on slicer selection. So, above requirement cannot be achieved now.
Regards,
Yuliana Gu
Is there maybe any other easy solution?
Currently we are working with static tables and use the input of these tables for our sample size number.
Many thanks for your help!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
70 | |
37 | |
29 | |
26 |
User | Count |
---|---|
91 | |
49 | |
45 | |
38 | |
37 |