SOLVED

DAX to show top 10 cities for total sales

%3CLINGO-SUB%20id%3D%22lingo-sub-1527866%22%20slang%3D%22en-US%22%3EDAX%20to%20show%20top%2010%20cities%20for%20total%20sales%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1527866%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20Fact%20sales%20and%20a%20customer%20table.%20I'd%20like%20to%20do%20a%20visualization%20of%20total%20sales%20for%20each%20of%20the%20top%2010%20cities%20and%20put%20all%20other%20smaller%20cities%20into%20something%20like%20%22others%22.%20How%20can%20this%20be%20done%20using%20DAX%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EN%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1527866%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBI%20%26amp%3B%20Data%20Analysis%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1527883%22%20slang%3D%22en-US%22%3ERe%3A%20DAX%20to%20show%20top%2010%20cities%20for%20total%20sales%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1527883%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F70866%22%20target%3D%22_blank%22%3E%40Nima%20Mohandesan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20pattern%20is%20here%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.sqlbi.com%2Farticles%2Fshowing-the-top-5-products-and-others-row%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.sqlbi.com%2Farticles%2Fshowing-the-top-5-products-and-others-row%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi,

 

I have a Fact sales and a customer table. I'd like to do a visualization of total sales for each of the top 10 cities and put all other smaller cities into something like "others". How can this be done using DAX? 

 

Thanks, 

 

N

1 Reply
Best Response confirmed by Nima Mohandesan (Contributor)