Forum Discussion

atin's avatar
atin
Advocate III
6 years ago

Top N Function and BLANK()

Hi  - I created a measure for the top 100 Customers.

 

See below:

Top 100 Customers =

CALCULATE( [Total Sales],

TOPN( 100, ALL(Customer_Lookup[customer names]), [Total Sales], DESC),

VALUES( Customer_Lookup[customer names] ))

 

I want to be able to recognise situations where I may not have up to 100 customers and not have 0 numbers showing in the bar chart I have created.

 

I know there is a BLANK() function that exists however I am unsure where to include this in my measure above.

 

Please advise or any other tips would be useful 

 

Many thanks 

4 Replies