Forum Discussion
hixkim
4 years agoFrequent Visitor
Rank based on multiple fields
Hello - hoping someone is able to help me out with this, I'm a little out of my depth. I think either a column or DAX would work for me. Ultimately I want to rank a vendor's weekly pricing lowest t...
- 4 years ago
Hello hixkim
Create a new calculated column with the following formula:
Sorting Column = RANKX ( FILTER ( 'Table', 'Table'[Year-Week] = EARLIER ( 'Table'[Year-Week] ) && 'Table'[Item Number] = EARLIER ( 'Table'[Item Number] ) ), 'Table'[Unit Cost], , ASC, DENSE )Workspace Attached
themistoklis
4 years agoCommunity Champion
Hello hixkim
Create a new calculated column with the following formula:
Sorting Column =
RANKX (
FILTER ( 'Table', 'Table'[Year-Week] = EARLIER ( 'Table'[Year-Week] ) && 'Table'[Item Number] = EARLIER ( 'Table'[Item Number] ) ),
'Table'[Unit Cost],
,
ASC,
DENSE
)
Workspace Attached
hixkim
4 years agoFrequent Visitor
You're amazing. Thank you!!