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.
Hello, I need to determine person rank based on estimated full year performance. I tried to use an approach from this post but not fully working in my case Solved: Lookup closest value to a number - Microsoft Fabric Community
Here is sample result of my report:
var Full year perfotmance = CALCULATE(SUM('Person'[YTD performance])/MONTH(TODAY())*12)
var lowerRange = maxx(filter(all('Rank limits'[Rank limit]), 'Rank limits'[Rank limit] < Full year performance), 'Rank limits'[Rank limit]')
return LOOKUPVALUE('Rank limits'[Rank], 'Rank limits'[Rank limit]' , lowerRange)
var Full year perfotmance = CALCULATE(SUM('Person'[YTD performance])/MONTH(TODAY())*12)
var lowerRange = maxx(filter(all('Rank limits'[Rank limit]), 'Rank limits'[Rank limit] < Full year performance), 'Rank limits'[Rank limit]')
return lowerRange
Table relations:
Person[PersonID] 1<->1 ChosenPeople[PersonID] (one-to-one)
ChosenPeople[Rank] *<->1 Rank limits[Rank] (many-to-one)
These are data from Rank limits table:
Rank | Rank limit |
R7 | 1 681 000 |
R6 | 1 155 000 |
R5 | 825 000 |
R4 | 600 000 |
R3 | 0 |
R2 | 0 |
R1 | 0 |
R0 | 0 |
My questions are:
1) Why I do not get the results I am expecting (see the picture above, red writing) and I have blank values?
2) Why does measure lower range without var syntax give blank values? Is it related to problem number 1?
Thank you for help and forgive me if I am missing something obvious 🙂
Hello, does anybody have an idea how to solve my issue? Description and sample file posted below.
I would appreciate any idea. Thank you!
@Wolf01 ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Hello amitchandak, thank you for your interest. Here is pbix file with anonymized data:
https://drive.google.com/file/d/1_cdmb0eJVFodnWRFgjs0g0n5u_KHwoiW/view?usp=drive_link
I have several problems with the report. I created several pages where I try to demonstrate the problem.
Note: I want to show results just for people from ChosenPeople table. Therefore there is a „all pages“ filter with their IDs.
Page1:
Page 2:
Page 3:
Page 4:
I was able to solve problem from Page 1 by adding duplicate Limit tables somehow but I do not consider it as elegant solution. I have no idea what to do with the rest. I am afraid I am doing some kind of basic mistake 😊
Thank you very much for your time and help.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
96 | |
82 | |
74 | |
66 |
User | Count |
---|---|
121 | |
105 | |
102 | |
82 | |
72 |