Forum Discussion
Show Rank in Card visual
- 2 years ago
I got the answer in this thread - Refer to this thread https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cannot-Identify-the-table-that-contain-column/m-p/4078934#M161950
Hi,
I am not sure if I understood your question correctly, but please try something like below whether it suits your requirement.
Rank: =
RANKX(ALL('All Metrics One Place'[Employee Name],'All Metrics One Place'[Site + LOB]), [Resolve attainment],,DESC,Dense)
- Sri_phani2 years ago
Helper III
No, this measure is not working. I tried something like this. This is working perfectly in table. but not in measure.
Test rank =VAR Tabled =SUMMARIZE(FILTER('All Metrics One Place','All Metrics One Place'[Date] <= MAX('All Metrics One Place'[Date]) &&'All Metrics One Place'[Date] >= MIN('All Metrics One Place'[Date]) &&'All Metrics One Place'[Site + LOB] = SELECTEDVALUE('All Metrics One Place'[Site + LOB])),'All Metrics One Place'[Employee Name],'All Metrics One Place'[Site + LOB],"Resolve Numerator", SUM('All Metrics One Place'[Resolve Numerator]),"Resolve Denominator", SUM('All Metrics One Place'[Resolve Denominator]))VAR newtable = ADDCOLUMNS(Tabled, "Resolve1", [Resolve Numerator]/[Resolve Denominator])VAR test1 = ADDCOLUMNS(newtable, "attain", IF( [Resolve1]= BLANK(), BLANK(), [Resolve1]/0.60))VAR Ranking = ADDCOLUMNS(test1,"Rank1", RANKX(test1, [attain],, DESC,Dense))VAR test2 = FILTER(Ranking, 'All Metrics One Place'[Employee Name] = SELECTEDVALUE('All Metrics One Place'[Employee Name]))VAR test3 = SELECTCOLUMNS(test2,"Rank2",[Rank1])RETURNtest3- Anonymous2 years agoNot applicable
Hi Sri_phani
I think I have understood your request, are you trying to show the level based on the date and employee name selected by the slicer?
But could you please explain "The LOB must consider the current week. For example, Lucifer could have been in any LOB before, but the rank must be calculated based on the current week's LOB." ? How do you determine the LOB for the current week? is it based on the date?
Could you please give the original sample data? How to provide sample data in the Power BI Forum - Microsoft Fabric Community Or show it as screenshot. Please remove any sensitive data in advance.
Best Regards,
Yulia Xu