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
nj-matt
Helper I
Helper I

Add column to identify group by data range

I have 2 tables - promotions and ROI ranges.

 

I would like to identify the promotions by the range in the ROI range table.

 

promo_groups

 

Promotion IDROI
A12341.50
A12351.25
A12361.05
A12370.88

 

ROI Performer Ranges

 

Promo TypeMinMax
Higher Performer1.402.00
Average Performer1.201.40
Low Performer1.001.20
Non Performer0.001.00

 

I want to add a column to my promo_groups table to now look like this -->

 

Promo IDROIPromo Type
A12341.50High Performer
A12351.25Average Performer
A12361.05Low Performer
A12370.88Non Performer

 

What is the formula to bring in this new colum to the promo_groups table?

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

@nj-matt 

Calculated column for your Table1:

 

Promo Type =
CALCULATE (
    DISTINCT ( Table2[Promo Type] ),
    FILTER ( Table2, Table2[Min] <= Table1[IDROI] && Table2[Max] > Table1[IDROI] )
)

 

Please mark the question solved when done and consider giving kudos 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

@nj-matt 

Calculated column for your Table1:

 

Promo Type =
CALCULATE (
    DISTINCT ( Table2[Promo Type] ),
    FILTER ( Table2, Table2[Min] <= Table1[IDROI] && Table2[Max] > Table1[IDROI] )
)

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

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

Cheers 

 

SU18_powerbi_badge

 

 

That did it - thank you!

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