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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to bucket a column values(Text) through measure

I want to create a custom column through measure only. As shown in the below table I have a column (Region) basis i want to create Custom Region.

 

Can someone help on this. 

 

RegionCustom Region
AfricaMECAA
South AfricaMECAA
MENAMECAA
MECAAMECAA
AmericasAmericas
AMEAmericas
EuropeEurope
LondonEurope
AsiaAPAC
APACAPAC
IndiaIndia
6 REPLIES 6
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

If you already have a lookup table which uniquely shows the mapping relation between Region and its corresponding Custom Region type, you can establish a relationship between two tables based on [Region] and create a measure similar to:

Measure = MAX(LookUpTable[Custom Region])

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Yulina,

 

Thanks for your inputs. However i am not using any Lookup table here. There is only one table which is having one column. Since I am unsing the live connection I cannot create custom columns or Lookup table. I have to group that column with measure only. Can you or Someone will help here.  I tried with

Measure(Custom Region) - If(Values(Table[Region]="Africa") || Values(Table[Region]="MENA"),"MECAA")

but gettong the error.

 

Please let me know if you have any solution on this.

Hi @Anonymous,

 

Please modify the measure formula:

Measure(Custom Region)= If(SELECTEDVALUE(Table[Region]="Africa")||SELECTEDVALUE(Table[Region]="MENA"),"MECAA")

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Yuliana,

 

I tried but it is not working. Please let me know the other options.

Hi @Anonymous,

 

Did you get any error message with above measure formula?

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi Yuliana,

 

Are you still working on this. Still waiting for the resolution

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.