Analytics Resources: Insights, Best Practices,

Case Studies and More

close
Written by Hemanta Banerjee
on November 08, 2010

One of the frequent questions I come across is I want to view the top 5, however I want everything else that is not in the top 5 to be placed in 1 bucket called others. I ran into the same question on the BOB board today and since it was simple enough here comes the solution.

Getting the rank within WEBI is quite simple using the RANK function. The syntax for the function is RANK(measure name; dimension name; top|bottom). For example if I wanted to find out the rank by sales I could define RANK([Sales Revenue], [City], top).

In order to make my life easier I have defined variable called Rank as shown below.

image

I can use that in a report filter to get only the top 3 regions by Sales Revenue.

image

Now to display all other regions I will use the WEBI function NOFILTER. This will return the total sales across all the regions irrespective of the filter. Using the formula below I can get the sales for all the regions that are not in top 3.

image

By placing this in the footer of the table I can get the report to show the sales for others.

image

You may also like:

Business Intelligence PowerBI PowerBI Dashboard Power BI Tips and Tricks

How to Display Last N Months Data in Power BI

One way to measure your business performance is by retracing your data during a period of time. In Power BI, this can be...

Business Intelligence PowerBI PowerBI Dashboard Power BI Mobile Power BI Tips and Tricks

3 Tips for Optimised Mobile Power BI Dashboard

With Power BI Mobile, users can access their reports and dashboards on the go. However, sometimes mobile view layout is ...

Business Intelligence PowerBI PowerBI Dashboard Aviation Airline Analytics

Airline Analytics: How Analytics Can Transform the Aviation Industry

Technology is changing how businesses are conducted across several sectors and industries. This also affects how busines...