Skip to main content

What are the top 10 states by gross sales from the ‘SalesData’ table?

Table of Contents

Solution (in DAX for Power BI or similar tools):

Top10StatesBySales = 
TOPN(
    10, 
    SalesData, 
    SalesData[GrossSales], 
    DESC
)

This measure will return the top 10 states sorted by the GrossSales column from the SalesData table.

Add comment