Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have a table with thousands of rows. Instead of displaying all the items, I would like to display 10 random rows of data every time to report loads. Is there an easy way to accomplish this?
Regards,
JingSpat
Solved! Go to Solution.
hi @Jingspat
You may use RAND() in DAX either as a calculated column but I would prefer a measure as RAND in a measure is not always recalculated (reference).
I tested how RAND works in a measure. Here's what I did:
ramdom measure = RAND()
hi @Jingspat
Which one is your goal?
-select just 10 random rows in power query and then load it to the model
-randomly choose 10 rows of the dataset already loaded to the model
@danextian Sorry for not being clear. I am relatively new to all this and am not sure of the proper terminology yet. I am using a table visualization that returns thousands of rows and then adds a scroll bar on the report, but I just want it to display 10 randomly selected rows of data and no scroll bar. I believe this correlates to your second scenario "randomly choose 10 rows of the dataset already loaded to the model."
Thanks so much!
hi @Jingspat
You may use RAND() in DAX either as a calculated column but I would prefer a measure as RAND in a measure is not always recalculated (reference).
I tested how RAND works in a measure. Here's what I did:
ramdom measure = RAND()
I can't seem to change the Visual level filter to anything other than "is less than" - it won't let me click the drop down box, but I can enter a value. What am I doing wrong?
Hi @Jingspat,
There is no Top N option for measures. Please select Index and then choose Top N under filter types then drag random measure to By Value.
Sorry for not getting it! I still can't change the filter type of Index:
Here is the modeling tab for the Index column:
are you not seeing this option?
I wasn't. I just updated to the latest version and now it is working! Thank you so much for the help!!!!
Appreciate it!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.