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
Anonymous
Not applicable

SUM row with double if / Filter

hi,
can you help me.

i want to sum Total Budget with 2 filter. first filter is find project in 2017 and status of project is Close.

already try with a data dax in power bi but still got error.

a= SUMX('Total Project';
IF('Total Project'[Tahun]=2017;
IF('Total Project'[Status]="Close";
SUM('Total Project'[Total Budget]))))
for the data:Annotation 2019-12-20 141358.png

 

thank you

 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous Please try below

Measure = CALCULATE(SUM('Total Project'[Total Budget]),'Total Project'[Tahun]=2017,'Total Project'[Status]="Close")

View solution in original post

5 REPLIES 5
v-lili6-msft
Community Support
Community Support

HI @Anonymous 

First, Add a CALCULATE in your formula or use the formula as vimal_parmar said.

a = SUMX('Total Project';
IF('Total Project'[Tahun]=2017;
IF('Total Project'[Status]="Closed";
CALCULATE(SUM('Total Project'[Total Budget])))))

 

Second, please notice that it is "Closed" not "Close"

1.JPG

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

hi @v-lili6-msft ,

ah thank you
sorry my bad heheheh
but it's works too!
thank you so much!

Anonymous
Not applicable

additional,

it's work without error

but there's is no result
the result is blank coba coba.png

 

Anonymous
Not applicable

@Anonymous Please try below

Measure = CALCULATE(SUM('Total Project'[Total Budget]),'Total Project'[Tahun]=2017,'Total Project'[Status]="Close")
Anonymous
Not applicable

hi vimal!

ah thank you for your code and it's simple too!
it's works

thank you!

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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