March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hello,
I'm attempting to make a DAX that uses the member_id in the reports_to column, to lookup the title for that member ID so I can make a dynamic grouping based on Title of the member_id that people report to.
member_id | Reports_To | Title |
Nhamilton | Business Manager | |
BMamrak | NHamilton | Admin |
LGlickman | NHamilton | Admin |
MHolland | NHamilton | Admin |
SPrice2 | NHamilton | Admin |
This is just a small sample from the dataset, please let me know if I can help with any additional details.
Thanks,
Seth
Solved! Go to Solution.
Not sure I am 100% following but generally LOOKUPVALUE or MAXX(FILTER(...)...)
That gave me the same result for all rows. I figured it out with LOOKUPVALUE, I had one of the columns in the wrong place, when switched it properly had a single value and returned what I was looking for.
Thanks for the original answer and help with this!
The information you have provided is not making the problem clear to me. Can you please explain with an example.
Appreciate your Kudos.
Not sure I am 100% following but generally LOOKUPVALUE or MAXX(FILTER(...)...)
I tried the below, but getting "a table of multiple values was supplied where a single value was expected"
member_id | Reports_To | Title | Title of Reports_to |
Nhamilton | Business Manager | ||
BMamrak | NHamilton | Admin | Business Manager |
LGlickman | NHamilton | Admin | Business Manager |
MHolland | NHamilton | Admin | Business Manager |
SPrice2 | NHamilton | Admin | Business Manager |
Jclark | Sales Director | ||
Scalkins | Jclark | sales | Sales Director |
Akoon | Jclark | sales | Sales Director |
Hope that helps clarify what I'm trying to accomplish. Thanks for your help.
Hmm, maybe:
Column =
MAXX(FILTER('Table',[member_id] = [Reports_To]),[Title])
That gave me the same result for all rows. I figured it out with LOOKUPVALUE, I had one of the columns in the wrong place, when switched it properly had a single value and returned what I was looking for.
Thanks for the original answer and help with this!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |