Forum Discussion

xile015's avatar
xile015
New Member
8 years ago
Solved

using a calculated column for conditional column

i have an excel file with 5 columns: name, quiz1, quiz2, quiz3, and quiz4

the name column has the names of the students (unique) and each of the quiz columns have their scores for each quiz

after loading the table to power bi, i used conditional columns to group the scores into four buckets:

below 70
70-79.99
80-89.99
90 and above

from there, i was able to create a pie chart for each quiz to show how many % of the population got below 70, 90 and above, and so on


i need to do the same on a different dashboard but instead of an excel file that i can load into power bi, they have the scores on calculated columns. when i tried creating a conditional column using the calculated columns, they do not appear available in the query editor and not on the conditional column pop up itself.

is there a problem here and is there any workaround?
  • Hi xile015,

     

    There isn't a problem in this scenario. The column created in the Data view won't appear in the Query Editor. You can create a Conditional column in the Query Editor instead.

    using_a_calculated_column_for_conditional_column

     

    Best Regards,

    Dale

4 Replies

  • v-jiascu-msft's avatar
    v-jiascu-msft
    Microsoft Employee

    Hi xile015,

     

    There isn't a problem in this scenario. The column created in the Data view won't appear in the Query Editor. You can create a Conditional column in the Query Editor instead.

    using_a_calculated_column_for_conditional_column

     

    Best Regards,

    Dale

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi

       

      It does not resolve the issue ,when i create new column through formula......it does not appear when i am trying to use it on conditional column

      Regards

      Vaneet

  • sraj's avatar
    sraj
    Responsive Resident

    Just as mentioned above I tried to create a column in the custom column, changed the type to DATE STILL SEE error

    = Table.AddColumn(#"Changed Type", "7th", each [Merged] + 7)