Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

How to split data only when filter applies?

Hi Guys,

 

I am trying to compile a GA Power BI Report using multiple accounts. I have a chart showing the amount of new users and returning users for a data source which has combined websites. I would like to be able to replace the User Type or add the Title of the website as a split but only when a user makes one or more selections in the slicer. If I add the Title by default it would get messy and thus will not be that professional. How can I achieve this?

 

 

3 Replies

  • Anonymous you can surely create dynamic titles using DAX measure but what would be the title with and without selection.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Yes I have the titles and added them to a chiclet slicer. By default they are not selected but what I want is if a user selects it, to add it as a Legend on the Line Chart

      • Anonymous's avatar
        Anonymous
        Not applicable

        HI Anonymous,

        I think expression based title feature should suitable for your requirement, you only need to add filters to check if any filter apply on your visual then use concatenatex function to merge selections default title text.

        Expression-based titles in Power BI Desktop 

        Measure =
        IF (
            ISFILTERED ( 'Table'[Column] ),
            CONCATENATEX ( VALUES ( 'Table'[Column] ), [Column], "," ) & " by day",
            "users by day"
        )
        

        Regards,

        Xiaoxin Sheng