Forum Discussion
TOP Achiever Analysis
it is very good till now
but i have very little issue i want to view the top 3 or 5 or 10
even no year is selected or i select more than one year together
- BeaBF2 years ago
Super User
Romani You can try with this new flag measure:
Flag_TOP =VAR year_selected = IF(HASONEVALUE('Credit Benchmarking'[Year]), "TRUE", "FALSE")RETURNIF( (year_selected= "TRUE" && SELECTEDVALUE('Credit Benchmarking'[ROS Rank_year]) <= 'Ranking Selection'[Ranking Select]) || (year_selected = "FALSE" && SELECTEDVALUE('Credit Benchmarking'[ROS Rank]) <= 'Ranking Selection'[Ranking Select]), "TRUE", "FALSE")you have to add as tooltip your last calculated column and the first one i sent you:ROS Rank =RANKX(ALL('Credit Benchmarking'), 'Credit Benchmarking'[ROS.3],, DESC, Dense)because the last one created take into account year and kpis, this one instead creates a flat rank.
BBF - Romani2 years ago
Helper II
To ensure the correct implementation of ranking measures and flags for "Return on Sales (ROS)" in Power BI, I should follow these steps:
Create the column for overall ROS ranking:
ROS Rank = RANKX( ALL('Credit Benchmarking'), 'Credit Benchmarking'[Return on Sales (ROS)], , DESC, DENSE )Create the column for ROS ranking based on year, industry, category, and sub-industry:
ROS Rank_year_industry_category_subindustry = VAR CurrentYear = 'Credit Benchmarking'[Date] VAR CurrentIndustry = 'Credit Benchmarking'[Industry GB Lease Classification] VAR CurrentCategory = 'Credit Benchmarking'[Category] VAR CurrentSubIndustry = 'Credit Benchmarking'[Sub-Industry (level 4)] RETURN RANKX( FILTER( ALL('Credit Benchmarking'), 'Credit Benchmarking'[Date] = CurrentYear && 'Credit Benchmarking'[Industry GB Lease Classification] = CurrentIndustry && 'Credit Benchmarking'[Category] = CurrentCategory && 'Credit Benchmarking'[Sub-Industry (level 4)] = CurrentSubIndustry ), 'Credit Benchmarking'[Return on Sales (ROS)], , DESC, DENSE )Create the measure to flag the top rankings based on the selected criteria:
Flag_TOP = VAR year_selected = IF(HASONEVALUE('Credit Benchmarking'[Date]), "TRUE", "FALSE") RETURN IF( (year_selected = "TRUE" && SELECTEDVALUE('Credit Benchmarking'[ROS Rank_year_industry_category_subindustry]) <= 'Ranking Selection'[Ranking Select]) || (year_selected = "FALSE" && SELECTEDVALUE('Credit Benchmarking'[ROS Rank]) <= 'Ranking Selection'[Ranking Select]), "TRUE", "FALSE" )
Despite following these steps, I am not getting the desired output. Specifically, when choosing the rank without considering the year, it does not reflect correctly.
- BeaBF2 years ago
Super User
RomaniI probably understood, the first formula must be like this:
ROS Rank = VAR CurrentIndustry = 'Credit Benchmarking'[Industry GB Lease Classification] VAR CurrentCategory = 'Credit Benchmarking'[Category] VAR CurrentSubIndustry = 'Credit Benchmarking'[Sub-Industry (level 4)] RETURN RANKX( FILTER( ALL('Credit Benchmarking'), 'Credit Benchmarking'[Industry GB Lease Classification] = CurrentIndustry && 'Credit Benchmarking'[Category] = CurrentCategory && 'Credit Benchmarking'[Sub-Industry (level 4)] = CurrentSubIndustry ), 'Credit Benchmarking'[Return on Sales (ROS)], , DESC, DENSE )
Try.
BBF
- Romani2 years ago
Helper II
no it doesnt work
- Romani2 years ago
Helper II
what i want when iam chosing the rank without year to reflect on the visuals
and when iam chosing the industry and rank it reflect too on the visuals
i dont want my ranking to be reflect if iam chosing one filter or iam choosing more than one - Romani2 years ago
Helper II
I didnt get any answer from your side
- Romani2 years ago
Helper II
Please check your email