Forum Discussion
kompalli
Helper I
3 years agoRank in a card
Hi Need Help I was trying to display rank in a card. Below are the details of I am trying to do. Below is the Table I have Company names and sales. One company has different names so I ranked fir...
- Anonymous3 years ago
Hi kompalli ,
I updated my sample pbix file(see the attachment), please check if that is what you want. It return 3 not 4, I'm not sure if it is correct or not...
NIKE Sales Ranking = RANKX ( ALL ( Company ), [Total sales] )Measure = VAR _tab = SUMMARIZE ( 'Company', 'Company'[Market/Nike], 'Company'[Company], "@totalsales", [Total sales], "@rank", [NIKE Sales Ranking] ) RETURN MINX ( FILTER ( _tab, Company[Market/Nike] = "NIKE" ), [@rank] )Best Regards
Anonymous
3 years agoNot applicable
Hi kompalli ,
I'm not clear about your requirement, could you please provide the exact value which you want to display in the card visual finally base on the below table data?
Best Regards
kompalli
Helper I
3 years agoHi Anonymous
Please find the below image to get details of the requirement.
- Anonymous3 years agoNot applicable
Hi kompalli ,
I updated my sample pbix file(see the attachment), please check if that is what you want. It return 3 not 4, I'm not sure if it is correct or not...
NIKE Sales Ranking = RANKX ( ALL ( Company ), [Total sales] )Measure = VAR _tab = SUMMARIZE ( 'Company', 'Company'[Market/Nike], 'Company'[Company], "@totalsales", [Total sales], "@rank", [NIKE Sales Ranking] ) RETURN MINX ( FILTER ( _tab, Company[Market/Nike] = "NIKE" ), [@rank] )Best Regards
- kompalli3 years ago
Helper I
Hi Anonymous
Thankyou for the quick response. I am sorry actually it was 3 by mistake I mentioned it 4. This was really very helpful🙂.