Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 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.
Hi, I have a shipment with port information. We can see it started from CHINA - JAPAN - USA - CAN - BRITAIN based on ETD.
I would like to write dax to know the first port, second port, third, fourth and fifth port. And may use same logic for 1000+ order
Is the logic like,
Port 1 = calculate(??, ETD = lowest)
Port 2 = calculate(??, ETD = second lowest)...
Please help me with this, thanks!
Solved! Go to Solution.
Hi @Anonymous
You can create a calculated column tht raks the orders then place it in a matrix visual. The only thing which I have doupt about is to make sure the date is actually a date type column not a text type column.
Prot Order =
"Order "
& RANKX (
CALCULATETABLE (
'Table',
ALLEXCEPT ( 'Table', 'Table'[Order Number] )
),
'Table'[ETD]
)
Port = SELECTEDVALUE ( 'Table'[Dep] )
Hi @Anonymous
You can create a calculated column tht raks the orders then place it in a matrix visual. The only thing which I have doupt about is to make sure the date is actually a date type column not a text type column.
Prot Order =
"Order "
& RANKX (
CALCULATETABLE (
'Table',
ALLEXCEPT ( 'Table', 'Table'[Order Number] )
),
'Table'[ETD]
)
Port = SELECTEDVALUE ( 'Table'[Dep] )
Thanks! It works!!!
Thank you so much! It works!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
126 | |
78 | |
78 | |
59 | |
51 |
User | Count |
---|---|
165 | |
83 | |
68 | |
68 | |
59 |