Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
alonardi
Frequent Visitor

Rank Comparison Current Year Vs Last Year

Hi, I´m trying to learn, and I appreciate any collaboration.

 

I find out a way for ranking top sales and grouping “other” clients ranked in an lower position.

 

I have a Sales Table, which contains the Total Amount Sales for each Client along time.

 

First, I create two tables for Ranking position from 1 to 15 and “Others” {1,2,3, …, 14, 15, “Others”} with the Min and Max fields which allows to group “other” clients beyond 15. I create one table for the current year, and another for the last year, as along time the ranking order is different for a same Client.

 

tabla.png

 

rel.png 

 

Then I create the next two measures, both for the current year and for the previous year (so, there are four measures).

 

forms.png 

 

forms PY.png

 

 

Then I used the Matrix Visualization, and the result was amazing. I'm very close to achieving it.

 

rank1.png

 

 

Now the problem is that the current and the previous year rankings in the Matrix and are not working independently. So, it does not show me the NAME of the clients and it Sales Amount in the Clients that in the previous year where not within 15 of the current year Ranking. I need to treat the Client Name independently, and I think that I must modify something in the “Show Client” criteria of the Previous Year. I´m using the same formula of the case for showing both current and previous year.

 

 

trouble.png

 

 

Then, I also looking forward to getting the information ordered by the Current Year Ranking, and the related information of the previous year. Just like the next image:

 

rank2.png 

 

In this case, if the Rank position is over 15, instead of showing the order number we can think in using a text like "Over 15"

 

Thanks a lot for any help or advise!

 

 

3 REPLIES 3
v-ljerr-msft
Employee
Employee

Hi @alonardi,

 

Could you share a dummy pbix file which can reproduce the issue, so that we can better assist on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploadingSmiley Happy

 

Regards

Hi @v-ljerr-msft

 

Thanks a lot for your reply. 

I will prepare a Data Set, and post the link on friday. 

 

Have a nice day

 

 

 

Hi @v-ljerr-msft!

 

While preparing the dataset, i solve the first problem. I was working with a Client Table with Unique Names. Thanks form making me think!! 

 

The second issue, i don´t now how to solve it.

 

I left you here the link of the pbi file, where you can find a first page called "Rank Comparison - Solved", and a second one called "Comparison Current Based" which i need help. 

 

https://lonardi-my.sharepoint.com/:u:/g/personal/andres_lonardi_onmicrosoft_com/ERFLTX0Z52pFpbzELEWX...

 

Thanks a lot!!

 

Best Regards

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.