Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi All!
Looking for some assistance. What seems relatively easy is causing me some difficulty. I am looking to rank my sales by different date slicers including the day of week. I have two different tables, one containing my calculated measures derived from other tables and another table containing my dates. When adding in my sales measure and day of week dimension into a matrix, the following formula seems to work somewhat ok if my date slicer is set to week. I say somewhat because it doesn't seem to rank properly, nor does it rank 1 - 7 with one being the highest day.
What am I doing wrong? Any assistance would be greatly appreciated.
@jawilson808 , A measure rank repeat for any other column used then the one used in rank.
Sales Rank = RANKX(all([BusinessDate]),[CY Sales],,DESC,Dense)
It means when you use day week, rank will done for Business date inside Day of week
Try like
Sales Rank = RANKX(all([BusinessDate], [Day of week]),[CY Sales],,DESC,Dense)
Hi @amitchandak,
Thank you for getting back to me. The formula you provided works similar to the one that I was able to come up with. However, if the slicer is filtered for the month and the table only contains day of week, it returns all 1's, however, if its filter for a week, it does return a rank.
If the table contains both date and day of week it does return a rank. In an ideal solution, I would like to be able to rank the entire month, year, week and etc as an aggregate to day of week and not have to include date depending on how the user filters the report.
See screenshots below of what returned with the update to the formula.
Filtered by month
Filtered by week
I've have almost figured it out. I updated the formula to
This is not good when filtering by month in the top matrix. The bottom matrix however is ok.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
89 | |
82 | |
56 | |
41 | |
37 |