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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anaxielia
Helper I
Helper I

Tagging a value with a measure and greater/lower condition

Hi,

 

I am working on a project that shows credit distribution over work areas. My raw data contains customer number, risk amount,branch and customers area of work information. I wrote a measure to see what is the risk distribution over sectors, as below:

 

RiskAmountbySector = 
SUM ( 'Risk'[ProfitlessRisk] )
    / CALCULATE ( SUM ( 'Risk'[ProfitlessRisk] ); ALL ( 'Risk'[SectorID] ) )

 

measure works like charm. However,  I want to show the sectors those percentage is 2% and below as "Other" in bar graphic whenever i change the branch. 

 

any help is appreciated.

 

Anaxielia_0-1605180276119.png

 

 

any help?

1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @Anaxielia 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Table:

d1.png

 

You may create a calculated column as below.

New Category = 
IF(
    [Percentage]<=0.02,
    "Other",
    [Category]
)

 

Result:

d2.png

 

 

Best Regards

Allan

 

If this post helps,then consider Accepting it as the solution to help other members find it faster.

 

View solution in original post

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @Anaxielia 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Table:

d1.png

 

You may create a calculated column as below.

New Category = 
IF(
    [Percentage]<=0.02,
    "Other",
    [Category]
)

 

Result:

d2.png

 

 

Best Regards

Allan

 

If this post helps,then consider Accepting it as the solution to help other members find it faster.

 

amitchandak
Super User
Super User

@Anaxielia , I think should be similar to TOPN + others, See if this can help

https://www.youtube.com/watch?v=UAnylK9bm1I

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi ,

 

I have a problem with that tutorial:

 

- I followed the steps however, when i tried to put into a measure, i cant select the column that would work as "used or other" info. I got "A circular dependency" error if i create as a new column. because the measure i want to rank, is using the same column (sector ID) and calculates the percentage of the risk of sector. 

 

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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