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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Martin_Z
Frequent Visitor

Calculated Column: Add Number to Rows before

Hello together,

 

I have a table with multiple projects in it. Each project has multiple steps and a few milestones. An example table could look like this:

NumberProjectDescription

1

Project 1Step 1
2

Project 1

Step 2
3

Project 1

Milestone 1
1Project 2Step 1
2Project 2Step 2
3Project 2Step 3
4Project 2Milestone 1

 

I want to create a calculated column that searches for the number the milestone has in the table and that writes that number to all rows in the specific project. The column I want to achieve should look like this: 

 

NumberProjectDescriptionColumn

1

Project 1Step 13
2

Project 1

Step 23
3

Project 1

Milestone 13
1Project 2Step 17
2Project 2Step 27
3Project 2Step 37
4Project 2Milestone 17

 

I somehow manged to do it with a measure, but that does not allow me to filter after the Milestone numbers, so it did not help me alot.

 

Is there any way to do it? Any help is very appreciated as I am a real beginner on that topic! 🙂

 

Best regards

Martin

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

1) you need to create an index column in power query
Screen Capture #830.png
2) create a calculated column
Screen Capture #831.png

View solution in original post

3 REPLIES 3
Ahmedx
Super User
Super User

1) you need to create an index column in power query
Screen Capture #830.png
2) create a calculated column
Screen Capture #831.png

Hey Ahmedx,

 

thank you very much! That worked for me. 🙂

 

Best Regards

Martin

Ahmedx
Super User
Super User

explain how you got the sum of 3 and 7

Screen Capture #829.png

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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