Forum Discussion
gsed99
Helper III
2 years agoSelected Value with lookups HELP
Hello, I am trying to create a report where a user can select a single Account ID and it will match that account to others based on the associated data of the selected account. For example, I ha...
- Anonymous2 years ago
Hi gsed99 ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a slicer table and a measure.
Slicer = VALUES('Table'[Account ID])Cohort = var _industry=CALCULATE(MAX('Table'[Industry]),FILTER(ALLSELECTED('Table'),[Account ID]=SELECTEDVALUE('Slicer'[Account ID]))) var _country=CALCULATE(MAX('Table'[Country]),FILTER(ALLSELECTED('Table'),[Account ID]=SELECTEDVALUE('Slicer'[Account ID]))) RETURN IF(MAX('Table'[Account ID])=SELECTEDVALUE('Slicer'[Account ID]),"1",IF(MAX('Table'[Industry])=_country,"2",IF(MAX('Table'[Country])=_country,"3","Other")))(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
2 years agoNot applicable
Hi gsed99 ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a slicer table and a measure.
Slicer = VALUES('Table'[Account ID])Cohort =
var _industry=CALCULATE(MAX('Table'[Industry]),FILTER(ALLSELECTED('Table'),[Account ID]=SELECTEDVALUE('Slicer'[Account ID])))
var _country=CALCULATE(MAX('Table'[Country]),FILTER(ALLSELECTED('Table'),[Account ID]=SELECTEDVALUE('Slicer'[Account ID])))
RETURN IF(MAX('Table'[Account ID])=SELECTEDVALUE('Slicer'[Account ID]),"1",IF(MAX('Table'[Industry])=_country,"2",IF(MAX('Table'[Country])=_country,"3","Other")))
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
gsed99
Helper III
2 years agoThank you this worked!