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 in Power BI by Priya
19 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 by Cherukuri
• 31,840 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
• 42,280 points
98 views
0 votes
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
• 6,880 points
2,819 views
0 votes
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
• 42,280 points
35 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
• 42,280 points
104 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,060 points
102 views
0 votes
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,060 points
747 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
• 16,220 points
137 views
0 votes
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
• 42,280 points
136 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 in Power BI by Cherukuri
• 31,840 points
19 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 in Power BI by Cherukuri
• 31,840 points
51 views