Forum Discussion

rkee10's avatar
rkee10
Frequent Visitor
1 year ago

Filtering with Charts on It

I have this table and with RAG status.  The way it works or how I expect to work, if I filter all the GREENs, those items with GREEN in RAG STATUS should show, including the charts or trends.  Is that possible, if yes, how?

 

 

7 Replies

  • freginier's avatar
    freginier
    Icon for Solution Sage rankSolution Sage

    Hey there!

     

    Yes, it is possible to filter your table by RAG status (GREEN) while ensuring that charts and trends remain visible in Power BI. Here’s how you can do it:

     

     

    • Click on your table visualization in Power BI.
    • In the Filters pane, locate the RAG Status column.
    • Apply a filter:
      • Set RAG Status = GREEN (or the equivalent value in your data).
    • The table should now only display items with GREEN status, while keeping charts and trends visible.

     

    Other option:

    If your charts disappear when filtering, it’s likely because the measure driving the chart is affected by the filter. To prevent this, modify your DAX measure so it ignores the filter on RAG Status.

    Try using the ALL function to ignore the filter in your measure:

    NewMeasure = CALCULATE(
    SUM(YourTable[Value]),
    ALL(YourTable[RAG Status])
    )

     

    Hope this helps!

    😁😁

     

  • rkee10's avatar
    rkee10
    Frequent Visitor

    I think you are just pertaining to the chart.  What i meant from my previous post is that I have the snapshot as an example.  That is a table with a chart/trend in it.  If i filter GREEN under the RAG STATUS, it will just show those rows that have GREEN in RAG STATUS column.  And the trends/charts that come with those rows with GREEN under RAG STATUS column should also be shown.

     

    I hope this is clear.  Thanks!

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi rkee10,

      Thanks for reaching out to the Microsoft fabric community forum.

      Yes, what you're trying to achieve is possible in Power BI. If your table has RAG status and a trend or sparkline column (like in your screenshot), then filtering by RAG (e.g., only GREEN) should show only those rows, including their respective trend/sparkline visuals as long as those visuals are part of the same table row.

      If you’ve added sparklines using Power BI’s built-in feature (right-click on the measure > “Add a sparkline”), those sparklines are tied to each individual row’s data and will be retained when the table is filtered. So if a row meets the filter condition (e.g., RAG = GREEN), it will show and the trend line will remain with it.

      The only scenario where sparklines or charts might disappear is if you're using a custom DAX measure for the chart values that is being affected by the filter. In that case, you might need to modify the DAX to ignore the RAG Status filter but for standard sparklines in the table, you typically don’t need to worry about that.

      So yes, you can definitely use sparklines here and filtering by RAG will behave the way you expect.

       

      I would also take a moment to thank freginier, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

       

      If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

      Best Regards,
      Hammad.
      Community Support Team

       

      If this post helps then please mark it as a solution, so that other members find it more quickly.

      Thank you.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi rkee10,

        As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.

        If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.


        If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.
        Thank you for your patience and look forward to hearing from you.