Forum Discussion

Ninja_Powered's avatar
Ninja_Powered
Frequent Visitor
3 years ago
Solved

Dimension Table with Two Columns

I have created a dimension table in a Power BI report to allow me to filter suppliers from multiple tables as below. However, it's now been highlighted to me that the two suppliers with the same name...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Ninja_Powered ,

    Please try like:

    Table = 
    UNION(
        ALLNOBLANKROW('Table1'[Supplier Name],'Table1'[Supplier code]),
        ALLNOBLANKROW('Table2'[Supplier Name],'Table2'[Supplier code]),
        ALLNOBLANKROW('Table3'[Supplier Name],'Table3'[Supplier code])
    )

    Please check the demo file.

    Best Regards,
    Gao

    Community Support Team

     

    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 in the Power BI Forum