Forum Discussion

marimar's avatar
marimar
Frequent Visitor
8 years ago

Column added in data tab not shown in query editor

Hello to all,

 

I am a beginner user of Power BI and I added a calculated column on the tab data (and not in the source data) to produce some pivot tables.

 

However the added column is not shown in the query editor.

Should I just make the calculations during producing the pivot tables? I would like to find the percentage of 2 sums of grouped features.

 

Many thanx for any insights!

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    If you add a column using 'Modeling->New Column' it wont show up in query editor, its scope is limited to report only i.e. after the data is populated and query editor steps are completed.

    If you want to add column at query editor level, got to query editor ->Add Column -> Conditional Column.

    This one would be added as a step in data tranformation.

    • marimar's avatar
      marimar
      Frequent Visitor

      Do you know how I can calculate fields in Power BI as in excel pivot tables? I want to have a pivot table in power BI. The values must be the ratio of 2 column

      • v-jiascu-msft's avatar
        v-jiascu-msft
        Icon for Microsoft Employee rankMicrosoft Employee

        Hi marimar,

         

        It's different in Power BI. No columns are needed. Maybe a measure is enough. The result could be as follows.

        Column1    Column2      Measure (the formula is = sum('table'[Column1]) / sum('table'[Column2]))

         

        If you would like the details, please provide a sample data.

         

        Best Regards,

        Dale