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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Usefulinfo
Helper I
Helper I

How to filter a set of rows without visual level filter

Hi All,

Need your help to solve below Query.

I have a measure which is created based on other existing measures.

Active_Form_ByEnd = ([Active_Form_BeforeDate] + [Form_Received_During_Period] ) - [Closed_Form_During_Period].
 
This is giving correct number of active Form but Its showing 0 for the [Closed_Form_During_Period] when used in visual(used Table visual).
 
Could you please suggest how to remove rows where the value is appearing 0 from the display for column [Active_Form_ByEnd]
 
Please note visual level filter is not applicable bcz I am using filed paramter to show dynamic table value for other measures as well.Hence, couldn't apply visual level fillter to remove 0 
 
Ex : you can see 0 value for form which is closed in April.
Usefulinfo_0-1731103688692.png

 

 
8 REPLIES 8
Anonymous
Not applicable

Hi @Usefulinfo ,

 

Please try to create a new measure.

MEASURE =
CALCULATE ( [Active_Form_ByEnd], FILTER ( 'Table', [Active_Form_ByEnd] <> 0 ) )

 

If that still doesn't solve your problem. Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.

 

 

Best Regards,

Clara Gong

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

@Anonymous ,Thank you for your reply.

I have tried this but didn't work. I will create a sample pbix file and share with you soon.

FreemanZ
Super User
Super User

hi @Usefulinfo ,

 

try like:

Active_Form_ByEnd =

VAR _result =

([Active_Form_BeforeDate] + [Form_Received_During_Period] ) - [Closed_Form_During_Period]

RETURN

IF(_result = 0, BLANK(), _result)

@FreemanZ , Thank you for you reply.

 

This will not work bcz it just replace 0 with blank but this row will be still visible in visual.

 

Could you please suggest anything else? 

hi @Usefulinfo ,

 

does any these three measures ended with "+0", if so could they be removed? [Active_Form_BeforeDate] , [Form_Received_During_Period] ) , [Closed_Form_During_Period]

@FreemanZ ,No, all measures have 1 value.

PhilipTreacy
Super User
Super User

Hi @Usefulinfo 

 

So you just want the 0's to not be displayed?

 

You can do this by applying a custom format to the measure.

 

Select the measure and on the Ribbon, in the Formatting section type 0;0;; then hit Enter

 

PhilipTreacy_0-1731109745108.png

 

Read more here -> Custom Formatting Strings in Power BI

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


@PhilipTreacy  Thank you for your suggesion. I tried this but didn't work.

I want to remove rows releted to 0 from display. Could you please suggest anything else.

Usefulinfo_0-1731155548962.png

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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