Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello,
I have a data set with 3 weeks of sales data for products. I need to rank the products by the latest week's sales only and I still need to be able to display the sales totals for the other weeks as well.
Below is a simplified version of the data set. I want to rank the products based on the highlighted info.
Here's the output I'm trying to get to:
Any suggestions would be greatly appreciated!
@Anonymous , Create a measure like this and create Rank on that. Better to separate date table
Last Week =
var _max = maxX(allselcted('Date'), 'Date'[Week Rank])
return
CALCULATE(sum('order'[Qty]), FILTER(('Date'),'Date'[Week Rank]=_max))
or
Last Week =
var _max = maxX(allselcted('Date'), 'Date'[Week Rank])
return
CALCULATE(sum('order'[Qty]), FILTER(ALLselected('Date'),'Date'[Week Rank]=_max))
or
Last Week = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))
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 |
---|---|
86 | |
78 | |
54 | |
39 | |
35 |
User | Count |
---|---|
102 | |
84 | |
48 | |
48 | |
48 |