The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone, I need your help!!!
I have 2 tables: Sales and Services. Now I want to rank SumSales per Products by selecting the Services. The table needs to have 4 columns: Rank, Products, Services, SumSales. I did make a measure like this:
rank = RANKS(CROSSJOIN (ALL(Sales[Products]), ALLSELECTED(Services[Name]), [SumSales], , DESC)
But it doesn't work. Anyone can help me? Thank you much
@liztruong , If they are joined with each other
Try like
rank = RANKX(Summarize(ALL(Sales),Sales[Product],Services[Name]), [SumSales], , DESC)
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
7 | |
6 |