ranking
33 TopicsRank basing on measure with parameter & Rank percentile
Hi Everyone, 1) I have created following measure in DAX: Model score weighted FA Table = [Productivity FA table Value] / 100 * AVERAGE(act_source[team_prod_model_score]) + (100 - [Productivity FA table Value])/100 * AVERAGE(act_source[fa_prod_model_score]) Where [Productivity FA table Value] is defined by What-If parameter as following: Productivity FA table = GENERATESERIES(0, 100, 50) Now I am strugling to prepare rank field using above measure. Basically I am trying to find equivalent of Rank_Unique() function in Tableau, which look like as follows: 2) Similar question related to ranking. I have field in my data called [surv_model_score]. I want to apply almost exactly same formula of Rank_Unique as above. Additionaly, on the output, I want to apply equivalent of Rank_Percentile() function as follows: Is there any way to get equivalent of rank_percentile in my case? Thanks and Merry Christmas !525Views0likes1CommentRanking by Profit-Difference in Two Months for productCategory Column
Hi I need some assistance with a DAX calculation. I'm trying to rank product-categories based on the Profit difference between two specific months. Here's the approach I've taken: Created Caclulated column 2019-Jan-profit for January 2019 and 2019-Mar-profit for March 2019. Created Calculated column Profit-Difference = 2019-Jan-profit - 2019-Mar-profit. Now When I show CAtegory and Profit-Difference it works well. Next I created Rank column of categories based on the sales difference but number our random. I'm encountering issues with the ranking calculation. The ranking doesn't seem to be accurate, and I suspect there might be an issue with my DAX formulas. Here are the formulas I've used: 2019-Jan-profit = If( [YearMonth] = "2019-01", [Profit] , 0.0) 2019-Mar-profit = If( [YearMonth] = "2019-03", [Profit] , 0.0) Profit-Difference = 2019-Jan-profit - 2019-Mar-profit Rank = RANKX( ALL( [ProductCategory] ) , [Profit-Difference], , DESC) Here is the sample Data YearMonth Category SubCategory Contract Profit 2019-01 Retail Brand A Contract X 5000 2019-01 Wholesale Brand B Contract Y 7000 2019-01 Online Brand C Contract Z 10000 2019-01 Retail Brand A Contract X 8500 2019-01 Wholesale Brand B Contract Y 9200 2019-01 Online Brand C Contract Z 9500 2019-01 Retail Brand A Contract X 9200 2019-01 Wholesale Brand B Contract Y 10500 2019-01 Online Brand C Contract Z 11000 2019-01 Retail Brand A Contract X 9800 2019-01 Wholesale Brand B Contract Y 10500 2019-02 Online Brand C Contract Z 12000 2019-02 Retail Brand A Contract X 7800 2019-02 Wholesale Brand B Contract Y 8500 2019-02 Online Brand C Contract Z 10500 2019-02 Retail Brand A Contract X 9200 2019-02 Wholesale Brand B Contract Y 9700 2019-02 Online Brand C Contract Z 11500 2019-02 Retail Brand A Contract X 9800 2019-02 Wholesale Brand B Contract Y 10500 2019-02 Online Brand C Contract Z 11000 2019-03 Retail Brand A Contract X 8300 2019-03 Wholesale Brand B Contract Y 8900 2019-03 Online Brand C Contract Z 10500 2019-03 Retail Brand A Contract X 9400 2019-03 Wholesale Brand B Contract Y 10000 2019-03 Online Brand C Contract Z 11500 2019-03 Retail Brand A Contract X 9700 2019-03 Wholesale Brand B Contract Y 10500 2019-03 Online Brand C Contract Z 11000 2019-04 Retail Brand A Contract X 8800 2019-04 Wholesale Brand B Contract Y 9200 2019-04 Online Brand C Contract Z 10500 2019-04 Retail Brand A Contract X 9600 2019-04 Wholesale Brand B Contract Y 10200 2019-04 Online Brand C Contract Z 11700 2019-04 Retail Brand A Contract X 9900 2019-04 Wholesale Brand B Contract Y 10800 2019-04 Online Brand C Contract Z 11200 Expected Output : Category 2019-Jan-profit 2019-Mar-profit Profit Difference Rank Wholesale 37200 29400 7800 1 Retail 32500 27400 5100 2 Online 30500 33000 -2500 3Solved928Views0likes4CommentsRanking Multiple Dax Measures
I am creating a PowerBI dashboard based on survey results. The survey was created using SurveyMonkey, and I am working with anonymized individual response data. All of this data is in a single table (call is Survey 2024). The data results make each individual respondant its own row, while the questions themselves are the vast majority of the columns. Most of these questions are numerical data (e.g. rank how you feel about X from 1-5, with 1 as worst and 5 as best). There are a few free response questions, but these are not pertinent to this issue. The survey has three sections: Section 1 has 42 ranked questions and 3 free response questions, Sections 2 has 8 ranked questions, and Section 3 has 25 ranked questions and 0 free response. I've been displaying the data by creating DAX measures to create the averages for these questions, and placed multiple dax measures in a clustered bar chart to display them against each other. The survey sections have subsections, so this has worked well enough. However, I also want to create a visual of some kind which shows the Top 5 and Bottom 5 ranked questions for Section 1 and 3, regardless of subsection. This has proven to be a very difficult task. I'm dealing solely with summary data, so creating a table visualization creates a new column for each measure rather than a new row, and I don't know how to rank them. I cannot get a matrix to work either. I would like another clustered bar chart, but I cannot figure out how to filter it to only display 5 of the 42/25 measures, even though all of the measures are based on questions which use the exact same 5 point scale. I've looked at other posts about ranking measures, but all of them seem to presuppose some column which is not a DAX measure; in my case, I am trying to rank only the DAX measures. Any help would be appreciated. I have attached some sample data below for reference on what the spreadsheet is like. This sample dataset would have 10 Dax measures for 10 ranked responses: Respondent My job utilizes my skills and abilities. I am given the flexibility needed to perform my job effectively. The work I do is meaningful to me. I am provided the resources needed to effectively do my job. The compensation and benefits I receive are appropriate based on my job duties, education, training, and experience. The expectations of my job are clearly communicated to me. I receive constructive feedback from my supervisor regarding my job performance. I am recognized for my contributions to my company. I am recognized for my contributions to my department My superiors welcome my opinions and ideas The review process accurately reflects my job performance. General Comment. 1 4 3 5 4 4 4 3 5 4 3 3 "I am experiencing significant dissatisfaction with my job. There is a lack of communication and support from management, which impacts morale and productivity." 2 5 4 3 5 5 4 5 3 5 4 3 3 3 5 4 3 3 5 4 2 3 5 5 "I am extremely satisfied with my job here. The work environment is supportive, and I feel valued for my contributions." 4 4 3 5 4 4 4 3 5 4 3 2 5 2 4 3 2 2 3 4 1 2 4 4 "I have mixed feelings about my job. While I enjoy the challenging nature of the work, there are instances where I feel micromanaged, which can be frustrating." 6 3 2 4 3 3 2 3 4 3 2 1 7 4 5 3 4 4 5 4 3 4 5 1 8 1 4 3 1 1 4 2 4 1 3 2 "Unfortunately, I feel undervalued and underappreciated in my current position. There is a lack of recognition for hard work and dedication." 9 5 3 2 5 5 3 4 3 5 3 5 10 2 4 5 2 2 4 3 2 2 4 3 11 4 3 1 4 4 4 5 3 4 2 2 12 5 4 3 5 5 4 5 3 5 4 2 13 3 5 4 3 3 5 4 2 3 5 5 "While I appreciate the opportunities for advancement, I sometimes feel overwhelmed by the workload. Finding a balance between work and personal life has been challenging." 14 4 3 5 4 4 4 3 5 4 3 3 15 2 4 3 2 2 3 4 1 2 4 2 16 3 2 4 3 3 2 3 4 3 2 4 17 4 5 3 4 4 5 4 3 4 5 4 "I find great fulfillment in my role at the company. The opportunities for growth and development are abundant, and I am grateful for the positive work culture." 18 1 4 3 1 1 4 2 4 1 3 2 19 5 3 2 5 5 3 4 3 5 3 1Solved2.5KViews0likes2CommentsCumulative sum from a measure with ranking
Hello to all ! I have the following problem: I have a measurement that is calculated from two others. With this measure, I get the ranking according to projects. I would like to have the cumulative value. For that, I am using this formula which is not really useful for me : **bleep** sale = CALCULATE([Sale], TOPN(RANKX(ALL(Proyect[Name]), [Sale],,,Skip),ALL(Proyect[Name]), [Sale])) This is what I have and this is what I need help with this please.Solved2.2KViews0likes3CommentsDoing a rank with a column created in variable
Hi everyone, I need to rank the Sales of the Employees, but I have a table and a new column called Test created as a variable in th DAX. This is to improve the performance. I have tried it without and it is taking too long to load, so this is my only solution. The loading time is no problem anymore but now I dont know how to iterate through the new column Test to get the ranking right. I need to use that column (which is a replication of the column Sales) because the column Sales is based on a lot of measures, which is the reason why it takes so long to load. The query is executing but the rankings come out all as 1. It must be due to the SUMX() that just compares every row with itself. How can I fix this? Your help is gretaly apreciated. Measure = VAR table_ = ADDCOLUMNS ( SUMMARIZE ( 'TableEmployee', 'TableEmployee'[Employee], "Sales", 'TableSales'[Sales] ), "Test", [Sales] ) RETURN RANKX( ALLSELECTED( 'TableEmployee'[Employee] ) , ( SUMX(table_, [Test])),,ASC,Dense)1KViews0likes3CommentsTop N by each category
Hello Guys, i need a top n analysis with the folllowing data i have Project Name Status Fiscal Year Job Fee Expected Fee BU Reason Lead Generator Proj1 Won 2019-2020 1000 2000 Audit New Pipeline ABC Proj2 Lost 2018-2019 3000 Tax The bid was L1 efg Proj3 Live 2017-2018 5000 Growth ABC Each row represents a new pipleine.So we want to find top 10 projects/pipelines in each BU. The ranking should be based on Job fee in case where the status is "Won" and in case of status "Live & "Lost" the ranking shoulld be on the basis of expected fee.Also the ranking should be for the currrent fiscal year which is "2019-2020". The requirement is also that we should see the details such as Reason and LG for each pipeline.Solved654Views0likes1CommentRANKX to show sales rep along with their manager ID
I wanted to show ranking of the sales rep along with their managers. I am using sales (fact) table, it doesnt work Rank - SalesRep = IF(NOT(ISBLANK([Revenue])),RANKX(ALLSELECTED('Sales2022-2025'[SalesRepID]),[Revenue],,DESC),BLANK()) However, if I use employees table, it is working. What is the possible reason for this?467Views0likes1CommentProblem when creating a ranking using several tables in Power BI DAX
Hi team. I'm trying to do this, for each couple year-month I need to create the ranking of my revenue. The rankin must restart everytime the year changes. This is an image of my model And this is the formula that I've created: Ranking Revenue = VAR RevenuePerMonth = SUMX('sales', 'sales'[quantity] * RELATED('products'[price])) RETURN RANKX( FILTER( ALL('datedim'), 'datedim'[MonthNo] = MAX('datedim'[MonthNo]) || 'datedim'[Year] = MAX('datedim'[Year]) ), RevenuePerMonth, , ASC, Dense ) However, I'm getting always the same value when I create the table chart using the year and monthNo from the datedim table: What is missing or what is wrong?Solved810Views0likes3CommentsFiltered Rank Problem
Have created a standard ranking, which is working fine, using the following: Customer Ranking = rankx(all ('Customer Data'[Sold-to Party Group]),[CY Total Sales],,desc). I am working on a customer profile page where the filter is Sold-to Party Group (field used in the above formula). I am trying to return a simple card showing the customer's rank of all customers. The problem is that the rank is incorrect when using the above formula on the page filtered by customer group. The 2nd ranked customer shows as 3. I am pretty sure the problem is being caused by the page's selection criteria (Sold-to Party Group). Any help woould be greatly appreciated.1.3KViews0likes3CommentsRankX Ranking Ties
Hello, Can someone help with how to break ties? I have the below dax forumla creating a ranking column in my table using item code that thens ranks by the earliest date. I tried adding dense to the ties portion of the formula and I get this error Ranking = VAR __cd = PO_PurchaseOrderDetail[ItemCode] RETURN RANKX( FILTER( PO_PurchaseOrderDetail, PO_PurchaseOrderDetail[ItemCode] = __cd ),PO_PurchaseOrderDetail[PODATE]) Ranking error using Dense: Rtotal = VAR __po = PO_PurchaseOrderDetail[PurchaseOrderNo] VAR __cd = PO_PurchaseOrderDetail[ItemCode] RETURN RANKX( FILTER( PO_PurchaseOrderDetail, PO_PurchaseOrderDetail[ItemCode] = __cd ),PO_PurchaseOrderDetail[PODATE], DENSE) Results: Expected Ressult: Thanks so much in advance!Solved1.7KViews0likes2Comments