Forum Discussion

rmcgrath's avatar
rmcgrath
Advocate II
1 year ago
Solved

Replace multiple values with a conditional column not working?

Hi, all - here are my steps:  used the Conditional Column wizard to create a new Site_ID column; removed the old Site_ID column; renamed the new one to "Site_ID".  I do not get any errors, but the re...
  • MasonMA's avatar
    1 year ago

    rmcgrath 

     

    Hi, if in your situation, i would create a 'Site' Lookup table manually in Excel or Power BI itself(if it's a small model).

     

    In Power Query make sure all Site_ID are of type Text. Then in Power BI Model view, create one-to-many relationship between your Lookup table and Fact table. Now your 'Site' Lookup table will be working as a dimension table. 

     

    With your model being set up this way, the logic is reusable, scalable, and easier to maintain.

     

    Hope it helps:)