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
Anaxielia
Frequent Visitor

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

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors