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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
tina345
Helper II
Helper II

Table with state vs Percentage value (need to display under different group if percentage <1% )

Hello, 

 

I am fairly new to Power BI and I have a table  below.

Depending on couple of slicer selection I displayed Aggregate value of amount , Total Count along with % for each fields for that selection.

 

My requirement is in case if any state/states has %Aggregate Value < 1% . then group it as State = 'Others'.

Multiple states may have <1% Aggregate Value and in that case, we have to group it under State = 'Others'.

Can this be achieved using some calculations?

 

I am bringing Aggregate Value and Total Count from database query.

Bringing % from database woundn't interact properly for different slicer selection.

 

tina345_0-1710220025119.png

Sample Data Set:

 There is a slicer with 'Check type', which can be selected all and get AVG:

 For  '% of Agg Value' and '% of Number' , I am using a measure below:

       m_Sum_Agg_Val_1 = sum(my_table[AVG]) and showing value as Percent of grand total
 
tina345_0-1710304412610.png

 

 

ORDER_NUMLABLE_AMTStateCHECK_TYPEDATE_FILTERAVGNo of Accounts
1Gross AmountARE ContractLast Week77454.001
1Gross AmountAZFunded On Other DayLast Week116483.001
1Gross AmountCAE ContractLast Week73248.4111
1Gross AmountCAFunded On Other DayLast Week92495.3114
1Gross AmountCTE ContractLast Week70396.651
1Gross AmountDEFunded On Other DayLast Week77642.961
1Gross AmountDEE ContractLast Week81601.001
1Gross AmountFLFunded On Other DayLast Week61691.3010
1Gross AmountFLE ContractLast Week92721.313
1Gross AmountGAFunded On Other DayLast Week80286.821
1Gross AmountILFunded On Other DayLast Week88668.624
1Gross AmountILE ContractLast Week123593.712
1Gross AmountINE ContractLast Week64476.251
1Gross AmountKYE ContractLast Week60590.021
1Gross AmountLAFunded On Other DayLast Week104490.201
1Gross AmountMIE ContractLast Week70549.035
1Gross AmountMIFunded On Other DayLast Week104764.003
1Gross AmountMNE ContractLast Week75416.431
1Gross AmountMOFunded On Other DayLast Week77695.001
1Gross AmountNCFunded On Other DayLast Week109193.751
1Gross AmountNJE ContractLast Week61449.001
1Gross AmountNJFunded On Other DayLast Week74550.092
1Gross AmountNMFunded On Other DayLast Week77480.451
1Gross AmountNYFunded On Other DayLast Week75838.197
1Gross AmountOHFunded On Other DayLast Week75770.432
1Gross AmountPAFunded On Other DayLast Week104790.001
1Gross AmountSCFunded On Other DayLast Week74722.802
1Gross AmountTNFunded On Other DayLast Week80154.941
1Gross AmountTXE ContractLast Week77554.526
1Gross AmountTXFunded On Other DayLast Week83710.8310
1Gross AmountVAFunded On Other DayLast Week108468.441
1Gross AmountWIFunded On Other DayLast Week100.001

 

 

Thanks

 

 

2 REPLIES 2
Ritaf1983
Super User
Super User

Hi @tina345 
If i understood you correctly  you can add a calculated column with the formula :
Fixed state = if ('your table'[%Aggregate Value ] < 0.1 , "Others" , your table'[state]

if it is something else :

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

If this post helps, then please consider Accepting it as the solution to help the other

members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

For some reason I don't see an option to attach data set or report.I instead pasted data just in case.

 

I created a measure which would give me %value for each category of states:

m_pct_test = Data_Set[m_pct_of_GT]/ calculate ( Data_Set[m_pct_of_GT] , ALLSELECTED())
After that I applied both of this logic below, for testing I set threshold value to 3%, however there are some rows, which has PCT > 3%, still appearing as 'Others'
 
New Value for STATE = switch ( TRUE(), [m_pct_test]  <= 0.03 , "Others" ,                                                                  Data_Set[State])
//if(Data_Set[m_pct_test] < .03 , "Others", Data_Set[State] )

 

tina345_1-1710511892368.png

 

 

This is my data set:

LABLE_AMTStateCHECK_TYPEDATE_FILTERAVGNo of Accounts
Gross AmountARE ContractLast Week774541
Gross AmountAZFunded On Other DayLast Week1164831
Gross AmountCAE ContractLast Week73248.4145511
Gross AmountCAFunded On Other DayLast Week92495.30514
Gross AmountCTE ContractLast Week70396.651
Gross AmountDEFunded On Other DayLast Week77642.961
Gross AmountDEE ContractLast Week816011
Gross AmountFLFunded On Other DayLast Week61691.29910
Gross AmountFLE ContractLast Week92721.313333
Gross AmountGAFunded On Other DayLast Week80286.821
Gross AmountILFunded On Other DayLast Week88668.6154
Gross AmountILE ContractLast Week123593.712
Gross AmountINE ContractLast Week64476.251
Gross AmountKYE ContractLast Week60590.021
Gross AmountLAFunded On Other DayLast Week104490.21
Gross AmountMIE ContractLast Week70549.0345
Gross AmountMIFunded On Other DayLast Week1047643
Gross AmountMNE ContractLast Week75416.431
Gross AmountMOFunded On Other DayLast Week776951
Gross AmountNCFunded On Other DayLast Week109193.751
Gross AmountNJE ContractLast Week614491
Gross AmountNJFunded On Other DayLast Week74550.0852
Gross AmountNMFunded On Other DayLast Week77480.451
Gross AmountNYFunded On Other DayLast Week75838.192867
Gross AmountOHFunded On Other DayLast Week75770.4252
Gross AmountPAFunded On Other DayLast Week1047901
Gross AmountSCFunded On Other DayLast Week74722.7952
Gross AmountTNFunded On Other DayLast Week80154.941
Gross AmountTXE ContractLast Week77554.521676
Gross AmountTXFunded On Other DayLast Week83710.83110
Gross AmountVAFunded On Other DayLast Week108468.441
Gross AmountWIFunded On Other DayLast Week1001

 

Thanks

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors