Forum Discussion

jrecasens's avatar
jrecasens
Advocate I
9 years ago
Solved

Conditional formatting in CALCULATED tables

Just realized that column conditional formatting is not working with tables created by CALCULATETABLE Function (DAX), please fix.

  • Hi jrecasens,

     

    Conditional Formatting is available when the column specified with any aggregate function or it's a measure. In your scenario, you can set one aggregate function for the Amount column, eg: Sum. Then you can see the Conditional Formatting is available. Please see attached .pbix file.

     

     

    By the way, as Apple contains blank value, if you want to make it display. You can enable Show items with no data option for Product Name.

     

     

    Best Regards,
    Qiuyun Yu

4 Replies

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

    Hi jrecasens,

     

    Based on my test in Power BI desktop version 2.48.4792.721 64-bit (July 2017), the conditional formatting works fine with data created from CALCULATETABLE() function. See:

     

     

    In your scenario, please run the same desktop as ours. You can download the .pbix file here to have a look.

     

    Best Regards,
    Qiuyun Yu

  • Im using the same PBI version. I added a product dimension to your example:

     

     

    It looks like that when you create a report Table with fields from different tables (in this case the product table and the calculated sales table) the conditional formatting option disappears.

     

    You can find the example here:

     

    Example.zip

     

    https://1drv.ms/u/s!ApFP03_iPLLTgudP8qgx9Xj9lbAkKA

     

     

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

      Hi jrecasens,

       

      Conditional Formatting is available when the column specified with any aggregate function or it's a measure. In your scenario, you can set one aggregate function for the Amount column, eg: Sum. Then you can see the Conditional Formatting is available. Please see attached .pbix file.

       

       

      By the way, as Apple contains blank value, if you want to make it display. You can enable Show items with no data option for Product Name.

       

       

      Best Regards,
      Qiuyun Yu

      • jrecasens's avatar
        jrecasens
        Advocate I

        Excellent, adding an aggregate function to that specific column I need the conditional formatting works.