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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Jurgen1978
Regular Visitor

Sorting a visual based on a measure with numeric values and asterisk

Hi everyone,

I'm having problems sorting for example a visual, based on a measure that consists of numeric values as well as Asterisk (values which we don't want to show because too small) Until now, the result looks like this:

Jurgen1978_0-1616670067785.png

The blank categories are categories which in this case (placed some filters) have an outcome <10 which will result in asterisk (which means " we dont want to show this outcome, since it is too small". Apparently the asterisk (special signs?) outcomes are considered higher values, than numeric values, when I choose Sort descending, since they are placed in top of the categories that do have numeric outcomes. 

What I would want, is to have the blank categories below the categories with values. The fact that they are blank is ok. It's just that this way it just looks terrible (for me and more important for the end users)

 

Does anyone have a possible solution to overcome this issue? 

Many thanks in advance. 

Jurgen 

 

2 ACCEPTED SOLUTIONS

Hi  @Jurgen1978 ,

 

How about if you create a measure as below:

Measure=if(outcome>10,outcome,blank())

If it still doesnt work,could you pls provide some sample data for test?

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

Hi Kelly. Thank you for your reply. The formula works. However, Power BI won't show the categories with value Blank. For the moment I replaced Blank in your formula with 0. While sorting desc. the categories with value 0 are shown below the categories which have values >10

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@Jurgen1978 , One why is to hide blank is using the visual level filter. So you can is measure is not blank. Not sure if that can work for you

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thank you for your answer! However, actually the outcome is not necesarrily blank. All outcomes <10 are given an asterisk sign, which results in blank, in the visual. So the advanced filter "is not blank" doesn't work. Moreover I wouldn't want to hide them. I would want to show the categories, however I would want them to be situated below the categories tat do show values. 

Hi  @Jurgen1978 ,

 

How about if you create a measure as below:

Measure=if(outcome>10,outcome,blank())

If it still doesnt work,could you pls provide some sample data for test?

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Hi Kelly. Thank you for your reply. The formula works. However, Power BI won't show the categories with value Blank. For the moment I replaced Blank in your formula with 0. While sorting desc. the categories with value 0 are shown below the categories which have values >10

Hi  @Jurgen1978 ,

 

As tested here,it works fine.

v-kelly-msft_1-1617268449659.png

 

For decending,0 should below the values of >10,so what is the issue?

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Although the solution is not ideal, for the moment it works.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.