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

Values if an other value is not blank

Hi, I have a problem.
I want to delete SqMeters values when Sold has no values.

userpien_0-1720434206610.png


What i want:

userpien_1-1720434255975.png

 

 




I have tried different measures but if I try to write:
IF([Sold], sum[SqMeters])

or

Sold/Sqm =
CALCULATE(
sum([SqMeters],
FILTER ( VALUES ( Table[Store] ), [Sold] <> BLANK () )
)

these measures always return me an error where it tells me that the memory required for this calculation exceeds the available memory or a generic error.

How could I write a measure so that the SqMeters value is removed when Sold is blank?


Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Please try the following methods again:

SqM = CALCULATE(SUM('Table'[SqMeters]), FILTER('Table', 'Table'[Sold] <> BLANK()))

vjiewumsft_0-1722928288007.png

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

Based on my testing, please try the following methods:

1.Create the sample table.

vjiewumsft_0-1720514739637.png

2.Create the new measure to filter no values.

Sold no values = IF(VALUES('Table'[Sold]) <> BLANK(), 1, 0)

3.Drag the measure to the Filters pane and set show items is 1.

vjiewumsft_1-1720514752032.png

4.The result is shown below.

vjiewumsft_2-1720514774018.png

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thank you, for your help but i want that measure works with a filter inside the measure, because i want the information in a card.

Anonymous
Not applicable

Hi @Anonymous ,

Please try the following methods again:

SqM = CALCULATE(SUM('Table'[SqMeters]), FILTER('Table', 'Table'[Sold] <> BLANK()))

vjiewumsft_0-1722928288007.png

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Please someone can help me?

foodd
Super User
Super User

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

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.