You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/01/04 13:53:09 UTC

[GitHub] [incubator-superset] kalimuthu123 commented on issue #7831: Top 5 product on revenue basis issue in chart

kalimuthu123 commented on issue #7831:
URL: https://github.com/apache/incubator-superset/issues/7831#issuecomment-753986728


   
   this is the query i expected to do : 
   
   the aim of the query is to display top 5 of every month 
   
   select * from (SELECT Month , Revenue, City, Financial_Year, Financial_Quarter,InvoiceDate, dense_rank()
   OVER ( partition by Month order by Revenue desc )
   AS 'dense_rank' FROM table ) t where t.dense_rank<6 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org