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

Row with blank value disappear from table

My data model consists of three tables:

  • a table with all sales staff
  • a table with records of all sales
  • a calendar table

 

When I create a visual with all staff for a sales period Power BI returns 11 names, which is correct:

wo Sales.jpg

However, when I add the total sales for the sales people, three sales staff with no sales for the period drop off:

w sales.jpg

Any idea how I can include these in the table with showing just a blank field for sales? The are currently no filters applied to the visual other than the date of sale.

Thanks

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@Anonymous - There should be an option to show items with no data. Otherwise, you can often get around this by doing something like this:

 

Measure =
  VAR __Calc = <Some calculation>
RETURN
  IF(ISBLANK(__Calc),0,__Calc)

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
toucan
New Member

Make sure that the table field is set to don't summarise, otherwise having a blank value will cause the whole row to disappear. 

amitchandak
Super User
Super User

@Anonymous , You can Use +0 and filter for =0

or use this option

ShowItemwithoutdata.JPG

Anonymous
Not applicable

Thanks for your suggestion @amitchandak. However, the field I was pulling did not show the "show items with no data" option.

Greg_Deckler
Super User
Super User

@Anonymous - There should be an option to show items with no data. Otherwise, you can often get around this by doing something like this:

 

Measure =
  VAR __Calc = <Some calculation>
RETURN
  IF(ISBLANK(__Calc),0,__Calc)

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks @Greg_Deckler, your answer worked like a charm. 

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.