Forum Discussion
Top N By Value not working
In attached image Page 2 I am trying to apply FIlter on the visual where I want to see Top 10 values by Turnover % but I am unable to put turnover % measure in BY value section. please help.
4 Replies
- Daniel29195
Community Champion
could it be that the measure datatype is text ? assuming you used format( ) function in the DAX . ?
- Ritaf1983
Super User
Hi Ankurdatascienc
It seems a relationship problem,
The turnover is showing always 100%, so it doesn't have a filer context.To assist with correction, we need more data.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523- AnkurdatasciencRegular Visitor
Here is the link for file. Let me know If you can access it - https://drive.google.com/file/d/1P4D2xkDGnRuSXZnDHrzsePCwG7zZySzn/view?usp=drive_link
- Daniel29195
Community Champion
deactivate the relation betwen staff and leavers,
and activate the relation between ddesignations and staff.
if you cant because you are using the relation between staff and leavers,
then just change the code of
Joinee countmeasure to :
Joinee count = CALCULATE(COUNTROWS(staff),USERELATIONSHIP(dDesignations[Designation],staff[Designation]))this also will work .
If my answer helped sort things out for you, i would appreciate a thumbs up π and mark it as the solution β
It makes a difference and might help someone else too. Thanks for spreading the good vibes! π€