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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

sum if filtered

hello ,

 

I did a dashboard with filters.

 

I want to do a measure that sum the cost only when the first filter is filtered.

I want that when someone first open the dashboard - the total bom cost will be 0 and then when you choose to filter the "system" the cost will changed.

 

I tried to open new measure but itsn't working and i dont know why.

 

the measure :

SUMIF = CALCULATE(SUM('TOTAL COSTS'[PRODUCT BOM COST]),ISFILTERED('TOTAL COSTS'[System])=TRUE())

 

ReutArie_0-1628684077605.png

 

thank you for helping 🙂

 

Reut Arie.

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

@Anonymous  
Please try this code:

SUMIF =
IF (
    ISFILTERED ( 'TOTAL COSTS'[System] ),
    SUM ( 'TOTAL COSTS'[PRODUCT BOM COST] ),
    0
)

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_0-1628687373782.png !!

View solution in original post

1 REPLY 1
VahidDM
Super User
Super User

@Anonymous  
Please try this code:

SUMIF =
IF (
    ISFILTERED ( 'TOTAL COSTS'[System] ),
    SUM ( 'TOTAL COSTS'[PRODUCT BOM COST] ),
    0
)

Did I answer your question? Mark my post as a solution!

Appreciate your Kudos VahidDM_0-1628687373782.png !!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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