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
77 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
• 32,930 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,310 points
405 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,020 points
5,462 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,310 points
119 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,310 points
511 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,150 points
331 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 21, 2018 in Power BI by nirvana
• 3,150 points
1,467 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,550 points
446 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,310 points
493 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
• 32,930 points
145 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 10, 2019 in Power BI by Cherukuri
• 32,930 points
218 views