Forum Discussion
Creating a Ranking according to a date
- 5 years ago
Hi, Acamara
Create a calculated column to extract the month in the date,
_Month = MONTH ( 'Table'[Date] )Then, try to create a measure like below:
_Rank measure = RANKX ( ALLEXCEPT ( 'Table', 'Table'[_Month] ), CALCULATE ( SUM ( 'Table'[Sales] ) ), , DESC, DENSE )I created a simple sample to illustrate this.
Sample:
Result:
Please refer to the attachment below for details
Is this the result you want? Hope this is useful to you
Please feel free to let me know If you have further questions
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Acamara
Does your model have a dates table ?
Please share data in CSV or Excel format, it will help me create a solution faster. You can save in OneDrive or any other cloud drive and share the file link here.
- Acamara5 years agoFrequent Visitor
Hi Fowmy.
Thanks for your advice and help.
Here it goes: https://1drv.ms/u/s!AnE8bWuyHjo_kl-So6sj1-QAMzoz?e=kPLDHC
My objetive seems to be pretty simple and I've tried some ready to go solutions from this forum but none have worked soo far.Thanks again.