I have used below DAX Expression for getting top 10 customers based on one column of a table
TOP10CUSTOMERS:=
VAR SRANK = RANKX(ALL('TableName'[CustomerName])
,[Columnvalue]
,
,DESC
)
return IF(SRANK <= 10
,[columnvalue]
,blank()
)
Its giving results as expected.But now the requirement is to rank customers based on two columns instead of one column. DAX expression is as below:
TOP10CUSTOMERS:=
VAR STPRANK = RANKX(ALL('tableName'[CustomerName])
,[Columnvalue1] && [Columnvalue2]
,
,DESC
)
return IF(STPRANK <=10
,[Columnvalue1]
,blank()
)
its not working in this case.
Could you please suggest what is the issue with above DAX Expression