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

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

Reply
Anonymous
Not applicable

Add index column to measure

Hi Experts

 

How would you add an index column to the following measure

Channel_Grp = DISTINCT(SELECTCOLUMNS(Profitability_Consolidation,"Channel",Profitability_Consolidation[Channel]))

 

The Index order should be

1. All

2. IAM

3. OES

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Anonymous,

It seems like you want to set an index of your channel value. For this scenario, I'd like to suggest you use the switch function to manually convert these to return specific index values.

DAX – Making the “Case” for SWITCH() 

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

HI @Anonymous,

It seems like you want to set an index of your channel value. For this scenario, I'd like to suggest you use the switch function to manually convert these to return specific index values.

DAX – Making the “Case” for SWITCH() 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.