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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
SCallanan
Frequent Visitor

Suppress 0 in Field Parameters

Hi guys,

 

just wondering if you can help me with this...

 

I created a field paramter based on two measures and added a bar-chart which now shows a lot of 0 values. 

In the filter pane I tried to exlude 0 and or blanks etc but it doesn't work as it will hide the content of the other field parameter. 

 

Example below:

Dax Measure that causes the problem is the following: 

 

I tried both versions, but it does not change the outcome of the output. 

Admin = [Total Inspections]-[Physical] 
or 
Admin = IF ( ISBLANK ([Total Inspections] ), BLANK (), ( [Total Inspections]-[Physical] ) )
 
Field Parameter: 
Physical/Admin Slicer = {
    ("Physical", NAMEOF('Power BI - Inspections'[Physical]), 0),
    ("Admin", NAMEOF('Power BI - Inspections'[Admin]), 1)
}

 

This only happens when the Admin Slicer is selected. 

SCallanan_0-1723628070870.png     SCallanan_1-1723628292213.png

 

I can choose to not select 0 in the filter pane, but that hides all the Physical values then when Physical is selected. 

 

SCallanan_2-1723628527825.png SCallanan_4-1723628602415.png

 

SCallanan_3-1723628560481.png  SCallanan_5-1723628644268.png

 

 

Thanks for your help. 

 

1 ACCEPTED SOLUTION

Hey @SCallanan, please update the admin measure, and let me know if you encounter any issues.

Admin = IF([Total Inspections] - [Physical] = 0, BLANK(), [Total Inspections] - [Physical])

 

View solution in original post

8 REPLIES 8
ahadkarimi
Solution Specialist
Solution Specialist

Hey @SCallanan, could you please share a sample of your PBIX file? That would help me assist you better.

@ahadkarimi thank you for getting back to me. Where can I attach the pbix file for you? I can't publish it to the public to share the link.

@SCallanan you send it by gmail ahad.karimi8@gmail.com, after sending email let me know here one the email has been sent.

Hi @ahadkarimi I emailed that to you. Thanks for your help. 🙏

ahadkarimi_1-1723728419128.png

 

Hey @SCallanan, please update the admin measure, and let me know if you encounter any issues.

Admin = IF([Total Inspections] - [Physical] = 0, BLANK(), [Total Inspections] - [Physical])

 

@ahadkarimi 
Fair play to you Ahad. That worked. 😊

Many thanks. 👍

Glad to hear it worked, Sandra! You're very welcome.
Happy to help! 😊

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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