Forum Discussion

badgerr11's avatar
badgerr11
Regular Visitor
8 years ago

Duplicating and filtering columns

I'm new to Power BI and still trying to wrap my head around it. I have a column that I'd like to duplicate and keep in the same pbix. This column holds values indicating if an account is paid, free, or niether. The goal is to show visuaizations indicating each status (like a line chart for each status and another showing paid vs free.

 

When I've duplicated the column when I import the data from a local SQL server and filter it, the colmuns show the same filtered value. I'm trying to get ech column to show each distinct value - One column is called Paid and shows Paid accounts, a second column is called Free and shows Free accounts, and a third colmun called Niether shows accounts that aren't paid or free. I'm not sure where to go on this one. I'm stilllearing POwer BI and DAX. Any help would be appreciated. 

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Use ALL () function to ignore the filter on the base column.

     

    New_Column= ALL( Table1[Column1])

     

    Hope this helps.

     

    Thanks

    Raj

    • badgerr11's avatar
      badgerr11
      Regular Visitor

      Thanks for the reply and help, I appreicaite it! Unfortunately Power BI throws an "A table of multiple values was supplied where a single value was expected." message. Even when I filter for just one value (0,1, 99) before creating the new column.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Can you post sample data or sample PBI file with expected outcome.

         

        Thanks
        Raj