How to get a random sample of data with Power Query

howto get random sample in power query

Today’s Power Monday trick is about Power Query. This is based on my experience of working with large volumes of data.

Today I have been building a hotel dashboard (more on this later). As part of the dashboard, I wanted to show a random sample of user reviews. Reviews database had quite a few rows, so I wanted to extract a randomized sample of 100 reviews and show them in the report. When you refresh the report (Data > Refresh), then a new set of reviews will be fetched and shown.

Let’s learn how to generate a random sample with Power Query in this article.