Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Ankurdatascienc
New Member

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.

 

Ankurdatascienc_0-1707485549198.png

 

4 REPLIES 4
Daniel29195
Super User
Super User

@Ankurdatascienc 

Daniel29195_0-1707487668338.png

 

 

deactivate the relation betwen  staff and leavers, 

Daniel29195_1-1707487703645.png

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 count

measure to : 

Joinee count = CALCULATE(COUNTROWS(staff),USERELATIONSHIP(dDesignations[Designation],staff[Designation]))

 

 

this also will work .

Daniel29195_2-1707487829168.png

 

 

 

 

 

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! 🤠

 

Ritaf1983
Super User
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

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
Super User
Super User

@Ankurdatascienc 

could it be that the measure datatype is text ? assuming you used format( ) function in the DAX .  ? 

 

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.