We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hey 🙂
I have a table of production order ID's, coil ID's, and date of completed production. I want to make a new column that within each PO ranks the coils in the order they were produced. I think I'm supposed to use the RANKX-function, but I'm not sure how to apply filters.
| production_order | Coil | First complete date |
| 127 | 426 | 26.08.2018 14:24 |
| 970 | 900 | 25.06.2018 03:37 |
| 970 | 911 | 25.06.2018 04:57 |
| 970 | 152 | 01.09.2018 15:41 |
| 969 | 523 | 10.09.2018 04:10 |
| 969 | 525 | 10.09.2018 04:36 |
| 740 | 373 | 29.09.2018 19:49 |
| 740 | 386 | 29.09.2018 21:26 |
| 740 | 387 | 29.09.2018 23:04 |
Here, I'm trying to make a new column that gives coil 900 rank 1, coil 911 rank 2, and coil 152 rank 3, and then starts over from rank 1 on the next PO.
Solved! Go to Solution.
Try this calculated column
Column =
RANKX (
FILTER ( Table1, [production_order] = EARLIER ( [production_order] ) ),
[First complete date],
,
ASC,
DENSE
)
Try this calculated column
Column =
RANKX (
FILTER ( Table1, [production_order] = EARLIER ( [production_order] ) ),
[First complete date],
,
ASC,
DENSE
)
That worked. Thanks a lot! I've been sitting for hours trying to figure this out 🙂
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 38 | |
| 33 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 38 | |
| 34 | |
| 22 |