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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
sumeet_deokar
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.

sumeet_deokar_0-1662121840416.png

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

           120000

                       120200

                            .

                            .

                        120299

           129999

299999

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

3 REPLIES 3
sumeet_deokar
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.

lbendlin
Super User
Super User

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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