Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello Everybody,
I have a table with transactional records, that table has a counter of 1 per transaction by employee and the measure is an average of 0 and 1 from a different column.
On my power BI I have a slicer that will filter locations.
What i am trying to do is to rankx the average column by employee and filter out if the sum of transacions if is less than 30, whenever I do that the Rank will remain the same after I filter out less than 30
some of the formulas i tried:
RANKX(ALLSELECTED(table), table[avg_metric])
RANKX(ALLSELECTED(slicer_geo), table[avg_metric])
not all the ranks will be 31 but after I filter out the less than 30 it will hide some their rankings and not generate one for only the selected fields thart met the greater than 30 filter.
Any recommendations?
Solved! Go to Solution.
Hi John,
Thanks for the clarification. I now understand the issue better and was able to replicate it more accurately.
First my new test data (my formulas use 5 as a transaction treshold instead of 30 but the logic is the same):
Now the DAX that I used previously didn't work directly so I created an aggreated table as to combat this issue:
My new measures:
End result:
I believe these steps will solve the issue.
Proud to be a Super User!
Hi John,
So if I undestrood correctly you want to do a RANKX lsiting of employees whose total amount of transactions is more than 30?
My test data (here the goal is to exclude Patrick and John from the ranking):
First I placed if condition on the average metric:
Hopefully this helps!
Proud to be a Super User!
Thanks for taking your time trying to replicate my situation but on my end it doesnt work, do you think that maybe its the format of the values?
So far after using the formula of >30 and when I see the average metric in comparison with an average directly from the column the numbers are totally different, what are you using for summarizing the average metric from that dax formula?
Ranking is also a problem on my end, doesnt show the ranking as expected, what are you using as summary for that?.
The >30 is not removing the employees with less than 30 and I am using the same formula, what else de you think we are missing?
The table you showed it should be the same format that I am using
Average metric is only two values 0 and 1
Counter of transaction is always 1
for example (Im adding index in the screenshot below just for clarification)
Hi John,
Thanks for the clarification. I now understand the issue better and was able to replicate it more accurately.
First my new test data (my formulas use 5 as a transaction treshold instead of 30 but the logic is the same):
Now the DAX that I used previously didn't work directly so I created an aggreated table as to combat this issue:
My new measures:
End result:
I believe these steps will solve the issue.
Proud to be a Super User!
You solved this issue, you are the best!!
Just in case in the future sombody comes to this post with the same challenge, in order to create a virtual aggregated table you go to your dashboard, then click modeling and New Table in there you can use the summarize dax formula shared in response and thats it!
really Good job if possible i would give you 1M Kudos !
Thanks so much!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
9 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |