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
mbuhary
Helper I
Helper I

Annualize current year Sales and rank top gainers and losers against last year

I need to RANKX in my database based on Sales this year vs Last year top Gainers and Losers.

 

But since my current fiscal year is still incomplete I would like to annualize my current yeat numers before comparing for Ranking.

 

Also I would like to Rank only my VIP Customers so I need to filter in that condition as well.

 

[StoreCode] [StoreName] [Date] [Year] [CustomerID] [CustomerName] [VIP_Yes/No] [Sales]

 

Any help is appreciated

4 REPLIES 4
CheenuSing
Community Champion
Community Champion

Hi @mbuhary

 

Please upload some sample data and the output desired to googledrive or onedrive and share the link to find a solution.

 

 

Cheers

 

CheenuSing

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

Hi @mbuhary

 

Got your data set.  Need the follwing clarifications.

 

a)  Is the year based on calendar year Jan - Dec or different ?

b) What is the logic for generating the annualised sales for remaining months of current year ?

c) Can you do a manual computation of the result expected from the dataset shared and send it .

 

You could send me a private message instead of replying here to avoid too many conversations until a solution is found.

Cheers

 

Cheenusing

 

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

a) yes the year is Jan to Dec

 

b) current year sales divided by (max date - 31st Dec Last year) Times 365

 

c) based on the current available data if we apply the above calculation to Year on Year Growth the Ranks should be as follows:

A Bnk Rank 1 (Growth 128%)

IC BK U Rank 2 (Growth 56%)

 

 Similarly we have to rank if there are any negative number as well, ranking the lowest as Rank 1 most loser and so on.

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.