Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

can I hide a visual's axies?

I have two Visuals that are exactely on the same spot , I use DAX functions to let the one appear and the other one dissapear based on what the user selected in the slicers 

my problem is the title's of the axes both show , so they look very untidy , how do hide one of them  ? 

  • MFelix's avatar
    MFelix
    6 years ago

    Hi Anonymous ,

     

    What you can do as a workaround is to setup a measure with the dax formula for both titles then turn of the title on the graphs and add a card visualization with the dax formula that changes the axis title. Using a group by user won't realize they are seeing two visualizations.

     

    Also check the video below with an explanation on how to have dynamics axis.

5 Replies

  • Hi Anonymous ,

     

    Looking at what you are saying how don't you use a single chart with the measure making the switch between measures? would be much more tidy.

     

    But looking at your question if you go to the options of the chart you can turn on/off the axis and also the title of the axis (X or Y).

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks but the thing is I need to display the Axies of the seperate graphs for the users to understand the data they are looking at , is ther not a way for me to hide the Titles using a Dax function or something ? 

      • Anonymous's avatar
        Anonymous
        Not applicable

        Use bookmarks to display which visual is showing based on slicer selection.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous,

    I don't think you can use dax formula to direct interaction with visual axis. You can write the formula to replace some records of specific categories to blank to let power bi auto hide this category, but it impossible to only hide data category label.

    Regards,

    Xiaoxin Sheng

    • MFelix's avatar
      MFelix
      Icon for Super User rankSuper User

      Hi Anonymous ,

       

      What you can do as a workaround is to setup a measure with the dax formula for both titles then turn of the title on the graphs and add a card visualization with the dax formula that changes the axis title. Using a group by user won't realize they are seeing two visualizations.

       

      Also check the video below with an explanation on how to have dynamics axis.