Forum Discussion

evvvb7's avatar
evvvb7
Frequent Visitor
2 years ago
Solved

Creating a new table help

Hello! Please help - I have a situation where my data source has 1 row of sales data and separate columns identifying the the types of product. The issue is I need to display analytics based on the P...
  • kpost's avatar
    2 years ago

    -Click"Transform Data" to open Power Query and modify the table

     

    -Highlight the first two columns "Sale #" and "Amount", then right click and select "Unpivot other columns"

     

    - Filter the "Yes/No" column on the "Yes" value.

     

    See below screenshot, and I have also attached a .pbix file where I solved your problem.

    ///Mediocre Power BI Advice, but it's free///

  • kpost's avatar
    kpost
    2 years ago

    Yes, if you want to keep the original dataset untouched, then BEFORE you do the steps I outlined, duplicate the original table.  Make your modifications to the duplicate.

    ā€ƒ

  • kpost's avatar
    kpost
    2 years ago

    Assuming you want to have two copies of this table in your dataset, namely the original and the transformed one per your question:

     

    Add the table to your dataset, Duplicate it, do the transformations I described in the Solution on the duplicated version.

     

    This will leave you with two copies of the table.  One transformed per your question, and the other left untouched.  Both will query the original source, and both will update when the source document is updated and you refresh your dataset.