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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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)

Follow on LinkedIn
@ 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)

Follow on LinkedIn
@ 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.