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
Anonymous
Not applicable

Bridging table-hide item with no data

I have two different sets of Data (1. Payroll cost 2. Demographic).

I am trying to create a table showing dept. no of headcount. average cost.

 

Example.

Department

(From Bridging Table)

Headcount

(From Demographic)

Average Employment Cost

(From Payroll Cost)

Human Resource2100
Finance10150
Customer Service5120

 

I have created a bridging table for Department by creating a table based on the distinct value of Department in the demographic table. Relationship is one to many single direction from Demographic["Department"]to bridging table["Department"] and one to many single direction from payroll["Department"] to bridging table["Department"].

 

However, when i create visualization it is always showing all departments despite not having any data for headcount and average employement cost.

 

Example (on this month, there are no cost and no headcount in finance department, yet "Finance" is still reflected in the Department column.-show item with no data is not selected)

Department

(From Bridging Table)

Headcount

(From Demographic)

Average Employment Cost

(From Payroll Cost)

Human Resource2100
Finance00
Customer Service5120

 

Ideal State with the scenario.

Department

(From Bridging Table)

Headcount

(From Demographic)

Average Employment Cost

(From Payroll Cost)

Human Resource2100
Customer Service5120

 

Please Advice.

Thank you.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , need to look at the formula, is converting blank to 0. Ideally, it should be blank where there is not data

 

Are you using like

Meausre = count(Table,Table[A]) +0

 

Or using this option

ShowItemwithoutdata.JPG

 

Another option is filter 0 using visual level filter

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , need to look at the formula, is converting blank to 0. Ideally, it should be blank where there is not data

 

Are you using like

Meausre = count(Table,Table[A]) +0

 

Or using this option

ShowItemwithoutdata.JPG

 

Another option is filter 0 using visual level filter

Anonymous
Not applicable

Hi @amitchandak, thanks a lot it work. I was using measure = +0 , i removed the +0 and the unnecessary information is gone.

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.