cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Curious2115
Frequent Visitor

Ranking Sales Every Day

Hello,

 

I am trying to find out which hour of the day I am making the most sales. So, I am trying to make a ranking that create a new ranking each day.  The column I am trying to create is the "Rank" column (see image below). I am also going to use this column to create other calculated columns. Any help would be greatly appreciated. 

 

I tried doing it using something similar to this (https://community.powerbi.com/t5/Desktop/Creating-a-Ranking-according-to-a-date/m-p/1813762#M705371😞 

_Rank measure =
RANKX (
    ALLEXCEPT ( 'Table', 'Table'[Date] ),
    CALCULATE ( SUM ( 'Table'[Sales] ) ),
    ,
    DESC,
    DENSE
)

 

 

Curious2115_1-1620239386866.png

 

 

1 ACCEPTED SOLUTION
CNENFRNL
Super User III
Super User III

Calculated column solution

Screenshot 2021-05-05 231233.png

 

Measure solution

Screenshot 2021-05-05 231310.png

View solution in original post

2 REPLIES 2
CNENFRNL
Super User III
Super User III

Calculated column solution

Screenshot 2021-05-05 231233.png

 

Measure solution

Screenshot 2021-05-05 231310.png

View solution in original post

Thank you!

 

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors