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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
samioberoi
Helper III
Helper III

Summing up a Measure based on some consitions

Hi everyone!

 

I have a measure e.g Measure1 created here which is working fine, but i now need to sum the values of this measure  to get the total sum as per some conditions.

 

e.g: -     Measure1 -    (Which is already created)

 

             New measure i try to create = calculate (sumx (Table_A, [Measure1]), Filter (Table_A, 

                                                             not(containsstring(Measure1, "£") && Filter(Table_A, not(containsstring([Measure1], "Available")
                                                             && Filter(Table_A, not(isblank([Measure1]))))

 

When i try to create the measure as above highlighted in blue, it gives me error. Simply speaking i just need to get the total sum of Measure1 excluding the blanks and without summing up the values for ID's which contain "£" and without the ID values containing the word Available. I could have used simply visual level filter on Measure1 to exclude "£" and word "Available", but i need to calculate this in the form of a measure because i then need it to subtract with another measure.

 

Thanks in advance for any help.

 

Regards

1 ACCEPTED SOLUTION
BeaBF
Super User
Super User

@samioberoi 

 

New Measure =
CALCULATE(
SUMX(
FILTER(
Table_A,
NOT(
CONTAINSSTRING(Table_A[Measure1], "£") ||
CONTAINSSTRING(Table_A[Measure1], "Available") ||
ISBLANK(Table_A[Measure1])
)
),
Table_A[Measure1]
)
)

 

BBF

View solution in original post

2 REPLIES 2
BeaBF
Super User
Super User

@samioberoi 

 

New Measure =
CALCULATE(
SUMX(
FILTER(
Table_A,
NOT(
CONTAINSSTRING(Table_A[Measure1], "£") ||
CONTAINSSTRING(Table_A[Measure1], "Available") ||
ISBLANK(Table_A[Measure1])
)
),
Table_A[Measure1]
)
)

 

BBF

foodd
Super User
Super User

Hello @samioberoi, and thank you for sharing a question with the Community.  Please remember to adhere to the decorum of the Community Forum when asking a question.

Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive, Dropbox, or to a Github repository, and then share a file’s URL.

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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