Forum Discussion

handwepg's avatar
handwepg
Icon for Helper I rankHelper I
7 years ago
Solved

Why won't new column added to table show up on PowerQuery?

I've added a new column in one of my tables using the New Column button from the Modeling tab in Power BI Desktop.  However, when I go into Edit Queries from the Home tab, that new column does not ap...
  • MFelix's avatar
    MFelix
    7 years ago

    Hi handwepg,

     

    In the query editor you need to add a column similar to this:

     

    (if [A] = null then 0 else [A]) + (if [B] = null then 0 else [B]) 

    This will give 0 when the A or B column is null and sum result of both columns when you have values on both.

     

    No need to change null to 0.

     

    Regards.

    MFelix