Forum Discussion

Vigneshrao's avatar
Vigneshrao
New Member
1 year ago
Solved

How to show no data when bar graph is not selected.

We have created this dashboard to show the data based on the graphs. But there is a default data shown and we want it to show empty or no data and we should see data only based on the bar graph. Please help

 

The left side table shows the employee data. The right side bar graphs are filters. When the bars are clicked, the left side table should show filtered data. But when nothing is clicked, the table should so blank. Instead it is showing the entire data.

 

 

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi, Vigneshrao 

    Based on your information, I create some sample table:

     

    Create a table view and a stacked column view.

     

    Then create a new measure to replace Resource Group field, try the following DAX expression:

     

    NoDataMessage = 
    IF(
        ISFILTERED('Table'[Resource Group]),
        MAX('Table'[Resource Group]),
        BLANK()
    )
    

     

    When I don't click on the bar chart, the table view is empty, and when I click on it, there is the corresponding data, here is my preview:

     

     

     

     

    How to Get Your Question Answered Quickly

    Best Regards

    Yongkang Hua

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

3 Replies

    • Vigneshrao's avatar
      Vigneshrao
      New Member

      The left side table shows the employee data. The right side bar graphs are filters. When the bars are clicked, the left side table should show filtered data. But when nothing is clicked, the table should so blank. Instead it is showing the entire data.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi, Vigneshrao 

    Based on your information, I create some sample table:

     

    Create a table view and a stacked column view.

     

    Then create a new measure to replace Resource Group field, try the following DAX expression:

     

    NoDataMessage = 
    IF(
        ISFILTERED('Table'[Resource Group]),
        MAX('Table'[Resource Group]),
        BLANK()
    )
    

     

    When I don't click on the bar chart, the table view is empty, and when I click on it, there is the corresponding data, here is my preview:

     

     

     

     

    How to Get Your Question Answered Quickly

    Best Regards

    Yongkang Hua

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.