This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Hello,
My orders table where I need to rank the order of our customer according to their customer id, order date and not to include the Order cancelled to the ranking.
What I need to happen in power bi is a calculated column with the order ranking like this:
Pleasr help! I have been trying to solve this for a coupoe of days noe.
Solved! Go to Solution.
Hi,
Please check the below picture and the attached file.
It is for creating a new column.
Rank by customer and order date CC =
VAR _currentcustomer = Data[Customer_ID]
VAR _newtable =
FILTER (
Data,
Data[Customer_ID] = _currentcustomer
&& Data[Order_status] = "Complete"
)
VAR _rankingresult =
RANKX ( _newtable, Data[Order_date],, ASC )
RETURN
IF ( Data[Order_status] = "Complete", _rankingresult )
Hi,
Please check the below picture and the attached file.
It is for creating a new column.
Rank by customer and order date CC =
VAR _currentcustomer = Data[Customer_ID]
VAR _newtable =
FILTER (
Data,
Data[Customer_ID] = _currentcustomer
&& Data[Order_status] = "Complete"
)
VAR _rankingresult =
RANKX ( _newtable, Data[Order_date],, ASC )
RETURN
IF ( Data[Order_status] = "Complete", _rankingresult )
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 25 | |
| 24 | |
| 22 | |
| 21 | |
| 19 |
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 49 | |
| 25 | |
| 25 |