March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |