cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
snifer Member
Member

rankx cannot compare text with numbers- calculate lowest 10 customers

i got my table with column company (text) and column revenue

i want calculate 10 lowest performer

 i trying something like that

LOWEST 10 =
var customerrank = RANKX(MASTER_INVOICE;all(MASTER_INVOICE[Company]);[TOTALREVEUEINVOICE];ASC)
return
if (customerrank <= 10;[TOTALREVEUEINVOICE]; blank())

 

but i got an error on rankx doesn't support compare the text with typer numbers. ( i tried with format and value  but nothing)

how i could fix this? or other way to calculate lowest customers?

1 ACCEPTED SOLUTION

Accepted Solutions
az38 Super Contributor
Super Contributor

Re: rankx cannot compare text with numbers- calculate lowest 10 customers

Hi @snifer 

try to take 10 in quotas, like:

return
if (customerrank <= "10";[TOTALREVEUEINVOICE]; blank())

do not hesitate to give a kudo to useful posts and mark solutions as solution

 

View solution in original post

1 REPLY 1
az38 Super Contributor
Super Contributor

Re: rankx cannot compare text with numbers- calculate lowest 10 customers

Hi @snifer 

try to take 10 in quotas, like:

return
if (customerrank <= "10";[TOTALREVEUEINVOICE]; blank())

do not hesitate to give a kudo to useful posts and mark solutions as solution

 

View solution in original post

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)