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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
craig811
Helper III
Helper III

Positive vs Negative top ten list

Hi,

 

This is most likely reall easy , but how can I show a top ten list which includes negative and positive numbers ?

 

Thank you

5 REPLIES 5
tex628
Community Champion
Community Champion

Make a seperate column or measure where you make all the numbers positive, something along the lines of this: 

Column = IF( [Value] < 0 ; [Value] * -1 ; [Value]) 


Then use the top 10 filter on this column while displaying the correct numbers. 

/ J


Connect on LinkedIn
v-diye-msft
Community Support
Community Support

Hi @craig811 

 

Not quite understand your requirement, kindly refer to below similar threads whether help, if not, you might consider creating pbix file that will contain some sample data (remove the confidential info), upload the pbix to onedrive for business and share the link to the file. Please do not forget to describe the expected results based on this sample data.

https://community.powerbi.com/t5/Desktop/How-to-display-only-the-top-10-values-in-a-chart/td-p/32335 

https://community.powerbi.com/t5/Desktop/Show-positive-and-negative-in-TOPN-filter/m-p/728442 

https://community.powerbi.com/t5/Desktop/topn-dax-for-negative-values/m-p/1034645 

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Hi @craig811 ,

 

can you provide sample data?

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Hi,

 

Thank you for your repley,

 

Example data:

I have an item with say a Postive value : £103,000 and an Item with a Negative value: £-403,000. The negative value will not show up in my Top ten items as it's a negative.

 

Do I need to convert them to an absolute value to show them in my top ten list?

Hi @craig811 ,

 

If you need the absolute value, you can use this DAX function.

https://docs.microsoft.com/en-us/dax/abs-function-dax

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.