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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Sum a column with multiple filters

Hi everybody,

I am trying to filter a column by another column. I am trying to make multiple filters by other column, in this case by account.

I want to SUM the following column: [AMOUNT]

I want to filter the column CxC_Partidas[Importe en moneda local] , by the accounts "4307000001" and "4300000001" (text format)

I tried to solve it trough many ways but I am not capable to find a solution that does this without creating two or more measures. 

Any idea?

Deuda = CALCULATE(SUM(CxC_Partidas[Importe en moneda local]),
FILTER( CxC_Partidas,CxC_Partidas[Cuenta]="4307000001" CxC_Partidas[Cuenta]="4300000001"))
 
Thanks in advice!!!
1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey @Anonymous ,

 

from your description this should be doable.

Although the columns in the description and the ones in the measure are a little different.

 

Try the following measure:

Deuda =
CALCULATE (
    SUM ( myTable[AMOUNT] ),
    FILTER ( CxC_Partidas, CxC_Partidas[Importe en moneda local] IN { "4307000001", "4300000001" } )
)

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

1 REPLY 1
selimovd
Super User
Super User

Hey @Anonymous ,

 

from your description this should be doable.

Although the columns in the description and the ones in the measure are a little different.

 

Try the following measure:

Deuda =
CALCULATE (
    SUM ( myTable[AMOUNT] ),
    FILTER ( CxC_Partidas, CxC_Partidas[Importe en moneda local] IN { "4307000001", "4300000001" } )
)

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors