Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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?

  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous,
    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

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Anonymous 

    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

     

    • Anonymous's avatar
      Anonymous
      Not applicable

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

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous 

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

        - Michele

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous,
    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