Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Conditional column didn't works

Dear expert  

 

I try to set up condtional column but for some reason, it didn't works for all the column. I try to use the exact conditonal to other power bi report and it works fine but not the one i am working for. I attached the screenshot as below and hopefully you can help me to find out what's the issues. I did try to change the column "Style Price" data type to 'whole number', but it not allow me to do so. ('Style Price"column is a insert column on transfer data - gross sales / ordered item qty).  

 

Thank you

Maggie

  • Hi , Anonymous 

    According to the error message , I suspect that there are many ‘null’ values in your column ‘discounts’  or column 'Style Price' as shown in the image below.



    If this is the case, it is recommended to fill these 'null' values with actual values or filter out these data before creating the conditional column.

     

    Best Regards,
    Community Support Team _ Eason
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

     

     

5 Replies

  • Anonymous , In this case, Style Price should be decimal. Change it number/decimal format and try

    • Anonymous's avatar
      Anonymous
      Not applicable

       

      Hi amitchandak

       

      I try to change to decimal but it now allow me to do so.

       

      please advise.

       

      Thank you

       

      Maggie

    • Anonymous's avatar
      Anonymous
      Not applicable

      Dear expert

       

      I figure out the reason why it didn't works. The spreedsheet i am working on was combined two excel spreedsheet and only one of the spreedsheet the condition column is working and the other half of the spreedsheet the column didn't works.

       

      Do you know how to solve this issue?

       

      Please advise, thank you

       

      Maggie

      • v-easonf-msft's avatar
        v-easonf-msft
        Community Support

        Hi , Anonymous 

        According to the error message , I suspect that there are many ‘null’ values in your column ‘discounts’  or column 'Style Price' as shown in the image below.



        If this is the case, it is recommended to fill these 'null' values with actual values or filter out these data before creating the conditional column.

         

        Best Regards,
        Community Support Team _ Eason
        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.