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! Learn more

Reply
Marit
Helper II
Helper II

Extract specific rows from one column into another

Hi!

 

I have dataset like this.

 

IDnr     IDname

2           Per

4           Ole

6           Bert

9           Paul

 

I want to creat a new colum where I extract the IDname if the IDnr is between 4 and 7. So my new column would look like this:

NewColumn

Ole

Bert

 

I tried to do this DAX:

NewColumn=CALCULATE(VAULES(Table[IDname]), FILTER(ALL(Table[IDnr] >4 & Table[IDnr] < 7)))

But this doesen't work. Do anyone have suggetions on how to solve this?

 

Regards Marit

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Marit 

You want to create a new calculated column in the current table or a new table altogether? If it's the former:

New Column =  IF(Table1[IDnr] >=4 && Table1[IDnr] <= 7, Table1[IDName])

You might have to change the inequalities if you want to exclude 4 and 7 from the range of interest

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

View solution in original post

2 REPLIES 2
AlB
Community Champion
Community Champion

Hi @Marit 

You want to create a new calculated column in the current table or a new table altogether? If it's the former:

New Column =  IF(Table1[IDnr] >=4 && Table1[IDnr] <= 7, Table1[IDName])

You might have to change the inequalities if you want to exclude 4 and 7 from the range of interest

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

It was the former. Thank you a lot!

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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