The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I am trying to use the below measure to show the supervisor of an employee. Once the employee is selected, it should show the employee's manager. It returns a result, but it is incorrect.
Solved! Go to Solution.
Hi, @Anonymous
According to your description, I created some sample data and get the expected result as yours, you can take a look
This is my test data:
I created a measure [Manager name]:
Manager name =
var _selectedEmployee=SELECTEDVALUE('Table'[Employee Name])
return
CALCULATE(MAX('Table'[Manager]),FILTER('Table',[Employee Name]=_selectedEmployee))
Then I created a Slicer(place [Employee name]) and a card chart(place the measure), like this:
And I guess this is what you want.
You can download my test pbix file here
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
According to your description, I created some sample data and get the expected result as yours, you can take a look
This is my test data:
I created a measure [Manager name]:
Manager name =
var _selectedEmployee=SELECTEDVALUE('Table'[Employee Name])
return
CALCULATE(MAX('Table'[Manager]),FILTER('Table',[Employee Name]=_selectedEmployee))
Then I created a Slicer(place [Employee name]) and a card chart(place the measure), like this:
And I guess this is what you want.
You can download my test pbix file here
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Difficult to tell without sample data. Explore my video on how to get data from one table to another : https://www.youtube.com/watch?v=czNHt7UXIe8&t=4s
User | Count |
---|---|
75 | |
70 | |
39 | |
30 | |
28 |
User | Count |
---|---|
108 | |
96 | |
53 | |
48 | |
47 |