Forum Discussion

DeEviloN's avatar
DeEviloN
Icon for Helper III rankHelper III
4 years ago
Solved

Three tables from one

Good afternoon! I have one pivot table that contains data on the quantity, weight and labeled products, I want to create three tables with the rating of organizations inside the system (there are 4 id in total). Next, I want them to be assigned urls.

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi DeEviloN ,

     

    Table 1.

    Suppose you want to assign URLs based on the id field.

    Table 2.

    Transform data.

    Duplicate table1 three times.

    The new table can be renamed.

    For Table 3, please remove the [product weight] column and the [product labeling] column.

    Sort descending for [number of products] column. And then keep the top 4 rows.

    For ‘Table 4’ and ’Table 5‘, the same steps can be used to get the desired result.

    Select table 3 and use Merge queries.

    For ‘Table 4’ and ’Table 5‘, the same steps can be used to get the desired result.

    Close and Apply.

    Attach the PBIX file for reference. Hope it helps.

     

    If this doesn't work for you or I misunderstand your needs, please consider sharing more details about it. And it would be great if there was a sample file without any sensitive information here.

     

    It makes it easier to give you a solution.

    1. Sample (dummy dataset) data as text, use the table tool in the editing bar.
    2. Expected output from sample data.
    3. Explanation in words of how to get from 1. to 2.

     

    Best Regards,
    Community Support Team_Gao

     

    If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly -- How to provide sample data

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi DeEviloN ,

     

    Table 1.

    Suppose you want to assign URLs based on the id field.

    Table 2.

    Transform data.

    Duplicate table1 three times.

    The new table can be renamed.

    For Table 3, please remove the [product weight] column and the [product labeling] column.

    Sort descending for [number of products] column. And then keep the top 4 rows.

    For ‘Table 4’ and ’Table 5‘, the same steps can be used to get the desired result.

    Select table 3 and use Merge queries.

    For ‘Table 4’ and ’Table 5‘, the same steps can be used to get the desired result.

    Close and Apply.

    Attach the PBIX file for reference. Hope it helps.

     

    If this doesn't work for you or I misunderstand your needs, please consider sharing more details about it. And it would be great if there was a sample file without any sensitive information here.

     

    It makes it easier to give you a solution.

    1. Sample (dummy dataset) data as text, use the table tool in the editing bar.
    2. Expected output from sample data.
    3. Explanation in words of how to get from 1. to 2.

     

    Best Regards,
    Community Support Team_Gao

     

    If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly -- How to provide sample data