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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

To include 'no data' in chart

I've created a chart that visualises the count of appointments by sales reps (linking 2 separate tables to obtain the required info). The chart is filtered using month of appointment as well as sales reps. For a certain month, some reps have not completed any appointments (hence no data in the underlying table). How do I go about so that this is reflected in the chart, ie showing zero count of appointments by these sales reps? Thanks!

 

P/s: I tried 'show items with no data' but it doesn't seem to work for my issue. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

You should be able to just add 0 to the measure this will return the distinct count (if there are some observations else it will return 0).

count distinct = DISTINCTCOUNT( 'fact'[column]) + 0

If this work then please mark it as the solution and if it does not work would you then please provide some more information about your issue, i.e. a screen dump and a data sample.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

You should be able to just add 0 to the measure this will return the distinct count (if there are some observations else it will return 0).

count distinct = DISTINCTCOUNT( 'fact'[column]) + 0

If this work then please mark it as the solution and if it does not work would you then please provide some more information about your issue, i.e. a screen dump and a data sample.

Anonymous
Not applicable

Silly me! I added this as a new measure but I forgot to change the value used for the visualisation. Anyway, thanks!

Anonymous
Not applicable

Hi,

Can you share the DAX used for the measure?

Thanks.

Anonymous
Not applicable

Hi!

I'm simply using the 'count distinct' function for value (no of appointments). 

Anonymous
Not applicable

Hi,

Can you try using DISTINCTCOUNT( column ) + 0

Thanks.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.