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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Chris154
Frequent Visitor

Categorize with measure based on table range

Hi team,

 

I am trying to create a leaderboard where our employees can reach new levels based on the number of issues they have solved.

For this I have two tables: 

1) Issue log, which delivers the number of Issues closed by the team members

2) Level Overview, which defines at which step a new level is unlocked

 

As you can see from the attached file, I am stuck at the point that I can just lookup the exact value.

I somehow need to compare the actual number of issues closed to the Level Overview table and find the matching range (level).

I used the following formula, but I don't know how to modify it to find the correct range:

LevelAchieved = LOOKUPVALUE('Level Overview'[Level],'Level Overview'[Issues completed],'Issue Log'[Issues closed])

 

 

Any guidance would be much appreciated.

 

Level Up Table.pngLeaderboard.png

 

1 ACCEPTED SOLUTION
Irwan
Memorable Member
Memorable Member

hello @Chris154 ,

 

i am a beginner but is this result match to your need?

Irwan_1-1716788502202.png

 

Table 2 is your reference table:

Irwan_0-1716788441967.png

 

Hope this will give you some help.

Thank you.

View solution in original post

3 REPLIES 3
Irwan
Memorable Member
Memorable Member

hello @Chris154 ,

 

i am a beginner but is this result match to your need?

Irwan_1-1716788502202.png

 

Table 2 is your reference table:

Irwan_0-1716788441967.png

 

Hope this will give you some help.

Thank you.

Hi @Irwan ,

 

thanks so much! That was what I needed.

It did give me a bit of a headache afterwards, as my Level names are not "Level 1", "Level 2" etc. but fun words like "Curious Carrot" etc.

I had the issue, that it would return me the maximum value alphabetical wise instead of the corresponding Level name to the maximum achieved Issues completed.

 

I fixed this by then using the result in a lookupvalue formula:

Current Level = LOOKUPVALUE('Level Overview'[Level],'Level Overview'[Issues completed], MAXX(FILTER('Level Overview','Level Overview'[Issues completed]<='Issue Log'[Issues closed]),'Level Overview'[Issues completed]))

 

Just posting this if anyone else runs into a similar issue with this.

 

Again, thank you very much!

Glad to be a help.

Thank you.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.