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

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

Reply
cristianml
Post Prodigy
Post Prodigy

2 filters dAX

Hi,

 

This formula is not working, not sure where is the mistake. Could you help me ?

 

=CALCULATE(SUM(BR[Value]),
FILTER(BR,BR[BR Report]="Revenue"),FILTER(BR,BR[Type]="MTD Actual"))

 

I need to calculate the column "Value" but filtering by 2 categories from 2 different columns.

Thanks and regards.

2 ACCEPTED SOLUTIONS
v-gizhi-msft
Community Support
Community Support

Hi,

 

Please try this:

=
CALCULATE (
    SUM ( BR[Value] ),
    FILTER ( BR, BR[BR Report] = "Revenue" && BR[Type] = "MTD Actual" )
)

If you still have any issue, please share some sample data and the expected result.

Thanks!

 

Best Regards,

Giotto Zhi

View solution in original post

Hi,

 

Yeah, if you want to filter many categories, you should add all of them into FILTER function by '&&'.

And you can also filter them in Filter Pane.

 

Best Regards,

Giotto

View solution in original post

3 REPLIES 3
v-gizhi-msft
Community Support
Community Support

Hi,

 

Please try this:

=
CALCULATE (
    SUM ( BR[Value] ),
    FILTER ( BR, BR[BR Report] = "Revenue" && BR[Type] = "MTD Actual" )
)

If you still have any issue, please share some sample data and the expected result.

Thanks!

 

Best Regards,

Giotto Zhi

Hi @v-gizhi-msft ,

 

How can I filter more than 2 categories? like 4 catogories ?

 

=CALCULATE(SUM(BR[Value]),FILTER(BR,BR[BR Report]="9. TOTAL RESOURCE COST" && BR[BR Report]="12.2 Net Load / (Load Recoveries)" && BR[Type]="MTD Actual"))

 

I have to use:  &&  everytime I add a filter ?

 

Thanks

Hi,

 

Yeah, if you want to filter many categories, you should add all of them into FILTER function by '&&'.

And you can also filter them in Filter Pane.

 

Best Regards,

Giotto

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 Kudoed Authors