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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kedarp
Frequent Visitor

How to replace blank counts on tile with zero

Hi All,

We are trying to develop a report where 2source tables are used from SQL server direct query.

Design of report is there are multiple filters and based on selection, distinct count of both the tables shown on 2 different tiles.

Relationship is many to many and filter is bidirectional.

 

Problem is when there is no match in data for particaular combination of dropdowns, it will show blank. We need to show blank values as 0 on tiles.

 

Any example to acieve this will be of great help.

-----------------

Please consider following sample scenario : 

We have 2 tables 

1.Colleges : [CollegeID,CollegeName,Faculty,Campus,Reputation,State,City]

2.Participants : [ParticipantID,ParticipantName,CollegeName,PassingYear,HomeState,HomeCity]

 

  • Report design is on left dropdowns from college table, on right dropdowns from participants.(cross filters)
  • Distinct count of colleges and participants shown in center.These gets filterted by dropdown selection.
  • All the dropdowns are configured with "Show Select all option" ON and "Single Select" as OFF

 

When Home state is selected as Goa, Colleges is blank as there is no matching data in colleges table. We need to replace this with more meaningful value like 0.

-------------

Attached : 

Tables, reports screenshotColleges tableColleges tableParticipant tableParticipant tableReportReport

1 ACCEPTED SOLUTION

Hi Collin,

 

Thanks for your reply.

However I am able to solve my problem with dax expression using islank, if functions.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hello @kedarp,

if you go in to your data tables, there should be an option at the top to select blank cells as zero and not blank. 

 

hope it helps,

Collin

Hi Collin,

 

Thanks for your reply.

However I am able to solve my problem with dax expression using islank, if functions.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors