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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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

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

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 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.

October NL Carousel

Fabric Community Update - October 2024

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