The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi there,
I have a table with employee's name and his/her position and need to write formula to get results as it is shown in column 'Position_Full'. Lookupvalue didn't work.. Any help please?
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
Position_Full CC =
VAR _currentname = 'Table'[Name]
VAR _lookuptable =
SUMMARIZE (
FILTER ( 'Table', 'Table'[Position] <> BLANK () ),
'Table'[Name],
'Table'[Position]
)
RETURN
MAXX (
FILTER ( _lookuptable, 'Table'[Name] = _currentname ),
'Table'[Position]
)
It worked perfect! Thank you so much!
Hi,
Please check the below picture and the attached pbix file.
Position_Full CC =
VAR _currentname = 'Table'[Name]
VAR _lookuptable =
SUMMARIZE (
FILTER ( 'Table', 'Table'[Position] <> BLANK () ),
'Table'[Name],
'Table'[Position]
)
RETURN
MAXX (
FILTER ( _lookuptable, 'Table'[Name] = _currentname ),
'Table'[Position]
)
User | Count |
---|---|
20 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
9 | |
9 |