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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
cvarvar
Regular Visitor

Calculate sum with multiply filter

Hi all,

 

Here is an example of data

 

Month

SegmentTypeCustomers

02/2022

FIXAC10

02/2022

FIX NOR15

02/2022

MOBAC5

02/2022

MOBNOR8

02/2022

FMC_FAC3

02/2022

FMC_FNOR5

02/2022

FMC_MAC1

02/2022

FMC_M

NOR2

03/2022

FIXAC15

03/2022

FIX NOR15

03/2022

MOBAC10

03/2022

MOBNOR8

03/2022

FMC_FAC5

03/2022

FMC_FNOR5

03/2022

FMC_MAC1

03/2022

FMC_M

NOR3

04/2022

FIXAC5

04/2022

FIX NOR5

04/2022

MOBAC6

04/2022

MOBNOR7

04/2022

FMC_FAC5

04/2022

FMC_FNOR3

04/2022

FMC_MAC1

04/2022

FMC_M

NOR1

 

and i want to make calculation based on Segment and Month. So to like this:

 

Month

SegmentTypeCustomersTotal_Month_Segm

02/2022

FIXAC1025

02/2022

FIX NOR1525

02/2022

MOBAC513

02/2022

MOBNOR813

02/2022

FMC_FAC38

02/2022

FMC_FNOR58

02/2022

FMC_MAC13

02/2022

FMC_M

NOR23

03/2022

FIXAC1530

03/2022

FIX NOR1530

03/2022

MOBAC1018

03/2022

MOBNOR818

03/2022

FMC_FAC510

03/2022

FMC_FNOR510

03/2022

FMC_MAC14

03/2022

FMC_M

NOR34

04/2022

FIXAC510

04/2022

FIX NOR510

04/2022

MOBAC613

04/2022

MOBNOR713

04/2022

FMC_FAC58

04/2022

FMC_FNOR38

04/2022

FMC_MAC12

04/2022

FMC_M

NOR12

 

I tried a lot of things, like double filter, but the calculation was only per month, not per month and per segment. Any ideas. 

 

Thank you.

1 ACCEPTED SOLUTION
cvarvar
Regular Visitor

After a lot of tries I use this function:

 

Cust_per_Seg_Month = CALCULATE(SUM(Churn[Customers]), ALLEXCEPT(Churn,Churn[SEGMENT],Churn[MONTH]))
 
and it works.

View solution in original post

2 REPLIES 2
cvarvar
Regular Visitor

After a lot of tries I use this function:

 

Cust_per_Seg_Month = CALCULATE(SUM(Churn[Customers]), ALLEXCEPT(Churn,Churn[SEGMENT],Churn[MONTH]))
 
and it works.
Anonymous
Not applicable

Hi @cvarvar ,

It's glad to hear that your problem has been resolved. And thanks for sharing your solution here. Could you please mark the helpful post as AnsweredIt will help the others in the community find the solution easily if they face the same problem as yours.  Thank you.

Best Regards

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors