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

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

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