Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rodfernandez
Helper I
Helper I

Categorize data based on 3 columns

Hi,
i need to create a colum that asigne a value based on other 3 columns.

for example, i have this data table

 

IDDateType
10001-01-2021   1
10002-01-20212
10003-01-20211
10005-01-20213
10102-01-20211
10104-01-20212
10103-01-20213
10205-01-20211
10210-01-20211
10211-01-20211



I need to create a new column that for each same ID and type it, assign a letter (from "a" to "z") depending on which came first.
The result should be something like this

IDDateTypeNew Column
10001-01-2021   11.a
10002-01-202122.a
10003-01-202111.b
10005-01-202133.a
10102-01-202111.a
10104-01-202122.a
10103-01-202133.a
10205-01-202111.a
10210-01-202111.b
10211-01-202111.c



Thanks

1 ACCEPTED SOLUTION
Payeras_BI
Solution Sage
Solution Sage

Hi @rodfernandez ,

Find attached the pbix file with my proposal.

EDIT: Re attached again removing some unnecessary steps and adding List.Buffer.

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

2 REPLIES 2
Payeras_BI
Solution Sage
Solution Sage

Hi @rodfernandez ,

Find attached the pbix file with my proposal.

EDIT: Re attached again removing some unnecessary steps and adding List.Buffer.

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

Perfect, Thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors