Top N - Power BI

0 votes
How to show top N sales from the data in a table using slicer? My data set contain product sales and store details from past 5 years. I want to see Top orders with high sales, and the customer details.
May 2, 2019 in Power BI by Priya
504 views

1 answer to this question.

0 votes

Hi Priya,

You can use Rank () or Use TopN filtering.

Using Rank() 

Create rank for the fields using Rank() - 

RANK SALES = RANKX(Orders,Orders[Sales],,DESC)

Now place the fields in table and rank sales .

Now sort the rank field and filter out using Top and enter N value.

Using TopN Filtering.

Create a table with required fields and Drop sales.

Now Under Visual Level Filters, under order-id Select TopN filtering, enter the N value and drop sales field in the box below.

Now you can see top N Sales per order/region/ at the last row.etc.

Hope it helps you.

answered May 2, 2019 by Cherukuri
• 33,030 points

Related Questions In Power BI

0 votes
1 answer

Programmatically sign in - power bi

Basically: POST request to: https://login.microsoftonline.com/common/oauth2/token Body, form-url-encoded: grant_type: "password" scope: "openid" resource: "https://analysis.windows.net/powerbi/api" client_id: ...READ MORE

answered Sep 19, 2018 in Power BI by Kalgi
• 52,350 points
1,270 views
+1 vote
2 answers

Passing parameters to Power BI filter programmatically

In addition to @Kalgi's answer, there's another ...READ MORE

answered Sep 19, 2018 in Power BI by Nilesh
• 7,060 points
8,285 views
+1 vote
1 answer

Power BI Pivot Colums to Rows

Hey @Nilesh, reshape the data in the ...READ MORE

answered Sep 19, 2018 in Power BI by Kalgi
• 52,350 points
817 views
0 votes
1 answer

create interactive R plots in Power BI

 Right now Power BI only supports render ...READ MORE

answered Sep 20, 2018 in Power BI by Kalgi
• 52,350 points
1,274 views
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,267 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 22, 2018 in Power BI by nirvana
• 3,130 points
2,698 views
+2 votes
2 answers

Migrate power bi collection to power bi embedded

I agree with Kalgi, this method is ...READ MORE

answered Oct 11, 2018 in Power BI by Hannah
• 18,540 points
1,464 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Yes using Power BI REST API to ...READ MORE

answered Sep 18, 2018 in Power BI by Kalgi
• 52,350 points
1,620 views
0 votes
1 answer

Show orders from past n days in Power BI?

HI banu, Create a column like below, diff = ...READ MORE

answered Apr 8, 2019 in Power BI by Cherukuri
• 33,030 points
885 views
0 votes
1 answer

count of orders on n hour basis - Power BI

Hi Nithin, You can create a measure to ...READ MORE

answered Apr 11, 2019 in Power BI by Cherukuri
• 33,030 points
936 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP