Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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!
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
112 | |
112 | |
105 | |
94 | |
58 |
User | Count |
---|---|
174 | |
147 | |
136 | |
102 | |
82 |