Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Frequent Visitor

Creating a heirarchy in a hierarchy using IDs based on range of values between in it.

We have data for which hierarchy is defined within it and we need to categorised the data based on the range.


So for example,
100000-299999 is the main hierarchy in it we have 120000-129999, furthermore we have 120200-120299 as the inner category.








This is how roughly we can describe the structure.

So, we want a column that defines the structure, If we are having 120200-120299 as A, so 120000-129999 should be A(A) and further ahead 100000-299999 should be A(A(A))). Something to that effect,Yellow hiughlighted should be categorised under L&B while the Pink highlighted should be under P&M and so on

Frequent Visitor

Based on the numbers and colours highlighted I want to create a column of category that says which category these numbers belong to depending on the levels.

Your color assignments do not follow any discernable logic.  You will need to use a manual mapping table.

Super User
Super User

ok. what is your question?  What have you tried and where are you stuck?

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors