This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello Everyone
i have 2 table one table have different badge and 2nd table have Employee with value
Badge table
| Points | Badge |
| 100 | image link of badge 1 |
| 200 | image link of badge 2 |
| 300 | image link of badge 3 |
| 400 | image link of badge 4 |
badge table look like this
Employee table
| Employee | Points |
| Employee1 | 150 |
| Employee2 | 100 |
| Employee3 | 250 |
| Employee4 | 350 |
| Employee5 | 500 |
employee table look like this now when i create relationship between these 2 table one to one relationship create problem with one to one is only work when both table have unique value. badge image only show when unique value match like 100 points have level 1 image it's only showing when employee have same points what i want is from 1 to 100 level 1 bagde from 101 to 200 level 2 bagde and so on
any idea how i can do that i try one to many and many to one relation but nothing change badge image not even show when i change relation to one to many or many to one with one to one i need unique value in both table but in employee table vlaue not same it's change everyday
if anyone can help me this thank you
Solved! Go to Solution.
Add a calculated column with the following DAX code to your Employee table.
BadgePoints =
VAR P = Employee[Points]
VAR Result =
SWITCH(
TRUE(),
P>=100 && P<200,100,
P>=200 && P<300,200,
P>=300 && P<400,300,
P>=400,400,
0)
RETURN
ResultThis will give you the following result.
Then create the relationship between this new calculated column and your Badge table.
Add a calculated column with the following DAX code to your Employee table.
BadgePoints =
VAR P = Employee[Points]
VAR Result =
SWITCH(
TRUE(),
P>=100 && P<200,100,
P>=200 && P<300,200,
P>=300 && P<400,300,
P>=400,400,
0)
RETURN
ResultThis will give you the following result.
Then create the relationship between this new calculated column and your Badge table.
thank you
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 23 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 49 | |
| 47 | |
| 41 | |
| 21 | |
| 19 |