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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply

Sum of total conditions

Hello,

 

I have rows of data that includes ID and Amount.

There 2 condition that needs to be checked.

 

1. 25% of the total value and number(Count) of the Top ID's contributing to 25%. 

2. TOP 25 ID's contribution value.

 

Based on these 2 condition if Condition 1 Count of ID is not greater than 25 then need to consider Option 1.

else option 2

 

I have created this in excel by creating Cumulative % of each Individual ID's. not sure if this can be replicated to BI.

 

I have given Sample table below.

RanjanThammaiah_0-1681436909336.png

 

ID CountIDTotal% of Total% cumulative TotalCumulative TotalOpp Count_2
13002125000005%5%125000001
2317352019102%7%177019102
3270744311602%9%22133070.343
4299937511682%10%25884238.64
5295130593701%12%28943608.335
6330622560001%13%31199608.336
7337220000001%13%33199608.337
8345718681321%14%35067740.18
9215618011001%15%36868840.19
10335718000001%16%38668840.110
11317217339701%16%40402810.111
12338717339701%17%42136780.112
13345917339701%18%43870750.113
14321217000001%18%45570750.114
15284516519281%19%47222677.615
16319916100001%20%48832677.616
17381615000001%20%50332677.617
18263714316711%21%51764348.118
19269513871761%21%53151524.119
20337613416401%22%54493164.120
21324213300001%22%55823164.121
22330913000001%23%57123164.122
23345612336720%23%58356836.0723
24340612000000%24%59556836.0724
25350211357500%24%60692586.4225
26349210855540%25%61778140.8926
27346010403820%25%62818522.8927
28336610000000%26%63818522.8928
29318610000000%26%64818522.8929
3033599994310%26%65817953.8930
312721953683.50%27%66771637.3931
3237519000000%27%67671637.3932
3310379000000%28%68571637.3933
3434228669850%28%69438622.3934
3527168669850%28%70305607.3935
3633998669850%29%71172592.3936

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@RanjanThammaiah , the Windows function can help

 

example

 

Cumm = CALCULATE([Net], WINDOW(1,ABS, 0, REL, ADDCOLUMNS(ALLSELECTED('Item'[Brand]),"_net",[Net]),ORDERBY([_net],desc)))
Cumm % = DIVIDE([Cumm], CALCULATE([Net], ALLSELECTED()))
25% = sumx(KEEPFILTERS(ADDCOLUMNS(ALLSELECTED('Item'[Brand]), "_1", [Cumm %])), if([_1]<.25 , [Net], BLANK()))

Pareto Analysis Again, 80% of sales, Order by Measure when REL position is used: https://youtu.be/GpoITi_tRIw

@amitchandak , Thanks for the reply.

 

Looks like it's not working for me. Kindly check and let me know if am doing it wrongly.

RanjanThammaiah_0-1681529383675.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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