Forum Discussion
Islam
5 years agoHelper V
create sorted table and keep duplicates
hello everyone i have a fact table have duplicated employees ID and wanna sort it with keeping duplicates and then get the last corresponding value from another column in the same table like follow...
- 5 years ago
thanks to all who tried to help me out with this but actually it worked for me using the following measures
Hierarchy Title =VAR CurrentHierarchy = SELECTEDVALUE(fTransactions[EmpID])RETURNMINX(FILTER(ALLSELECTED(fTransactions),fTransactions[EmpID]=CurrentHierarchy),RELATED(dHierarchy[Hierarchy title]))Main Degree Title =VAR CurrentMainDegree = SELECTEDVALUE(fTransactions[EmpID])RETURNMINX(FILTER(ALLSELECTED(fTransactions),fTransactions[EmpID]=CurrentMainDegree),RELATED(dMainDegree[Degree]))Sub Degree Title =VAR CurrentSubDegree = SELECTEDVALUE(fTransactions[EmpID])RETURNMINX(FILTER(ALLSELECTED(fTransactions),fTransactions[EmpID]=CurrentSubDegree),RELATED(dSubDegrees[Sub Degree]))
Ashish_Mathur
5 years agoSuper User
Hi,
Drag EmpID to the Table visual and write these 2 measures
Max of value 1 = max(Data[value1])
Max of value 2 = max(Data[value2])
- Islam5 years agoHelper V
ok sir I'll try this out
- v-kelly-msft5 years agoCommunity Support
Hi Islam ,
Is your issue solved now?If so,could you pls mark the reply as answered to close it?
Best Regards,
KellyDid I answer your question? Mark my post as a solution!