cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Creating a Visual with a fixed Categorical Variable as an Axis

I am creating a Dot Plot that has a Categorical Variable of Project as the X-Axis with possible values of Project 1, Project 2, Project 3, Project 4. I would like all 4 of these categories to appear on the Axis regardless of whether or not there are data points that fit into them.

 

Right now the X-Axis is dynamic and will only show categories with values in them (e.g. Project 1, Project 2, Project 4 when there are no data points in Project 3). Is there a way for me to make all 4 of these categories appear at all times?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Creating a Visual with a fixed Categorical Variable as an Axis

Hi @jgleason,
Charts will aggregate values based on-axis and legend, blank and zero values will be hidden in the visual and no impossible to force display them.
I'd like to suggest you use them on table visual, it allows you to force display the no data categories. You can also try to replace these zero value records with a default value. (e.g. -1)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Highlighted
Microsoft
Microsoft

Re: Creating a Visual with a fixed Categorical Variable as an Axis

@jgleason 

OK.  I have one more idea.  If you select the down arrow next to the fields that are in your visual, you can select "Show items with no data".  Does that work?

 

- Michele

 

blank.png

Highlighted
Regular Visitor

Re: Creating a Visual with a fixed Categorical Variable as an Axis

I tried that but unfortunatly it doesn't work. Any other thoughts?

 

Highlighted
Microsoft
Microsoft

Re: Creating a Visual with a fixed Categorical Variable as an Axis

Hi @jgleason 

I'm stumped.  I replicated your dot plot in my Power BI and it works for me. Sorry I couldn't help.  

- Michele

Highlighted
Super User IV
Super User IV

Re: Creating a Visual with a fixed Categorical Variable as an Axis

https://docs.microsoft.com/en-us/power-bi/desktop-show-items-no-data


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

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Community Support
Community Support

Re: Creating a Visual with a fixed Categorical Variable as an Axis

Hi @jgleason,
Charts will aggregate values based on-axis and legend, blank and zero values will be hidden in the visual and no impossible to force display them.
I'd like to suggest you use them on table visual, it allows you to force display the no data categories. You can also try to replace these zero value records with a default value. (e.g. -1)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Top Solution Authors
Top Kudoed Authors