Forum Discussion
Learner82
2 years agoNew Member
Power bi top n filter
Hi community, I am new to power bi. I want to use top n filter to just give me too 5 rows. I don't need any basis or anything. This is just to limit the number of rows to fetch. Any parameter with w...
- 2 years ago
The default window is 501 rows. If your query times out or you have more than 1 million distinct values then you would have to ask the capacity admin to raise the limit. Or - rethink your setup.
MNedix
Solution Sage
2 years agoHeya,
It seems to me you just want 5 random rows from your data sample and I also understand/assume you don't want to add an Index column.
If this is the case, you can use the SAMPLE function as below (it will return a table with 5 random rows from your table Table:
Sample table = SAMPLE(5,'Table',1)
If this solved your problem then please mark it as the solution so others can see it.
Best,