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

added into sum but not shown in the visual

Hi guy, I met a problem like this:

   This is a matrix visual, when dim1 is null, I need the null value is not shown in the visual(the row that dim1 is blank  should not shown), but the value of null is required to add to ’Total‘.

捕获.JPG

 Do you have any good ideas? Thank you.

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try the following measure:

 

SumTarget = 
IF (
    NOT ( ISFILTERED ( 'Table'[dim2] ) )
        || MAX ( 'Table'[dim2] ) <> BLANK (),
    SUM ( 'Table'[Target] )
)

vkkfmsft_0-1648607426184.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try the following measure:

 

SumTarget = 
IF (
    NOT ( ISFILTERED ( 'Table'[dim2] ) )
        || MAX ( 'Table'[dim2] ) <> BLANK (),
    SUM ( 'Table'[Target] )
)

vkkfmsft_0-1648607426184.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous ,is such a case it is better to use a visual level filter to remove the blank dim value.

 

But better you find why there is the null value. Is dimension having null values for that column, Or it is because of missing values in dimension and fact has those

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

If I use filter to remove null value, the value correspond to it would not added to total.

I need to add the value of  Target column to 'total' when dim2 is null, but the null value of dim2 should not be shown, is there to be any suggestion?

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.

Top Solution Authors