Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jrecasens
Frequent Visitor

Conditional formatting in CALCULATED tables

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

1 ACCEPTED SOLUTION

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.

 

q6.PNGq7.PNG

 

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.

 

q8.PNG

 

Best Regards,
Qiuyun Yu

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

View solution in original post

4 REPLIES 4
jrecasens
Frequent Visitor

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

 

borrar.JPG

 

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.

 

borrar2.png

You can find the example here:

 

Example.zip

 

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

 

 

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.

 

q6.PNGq7.PNG

 

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.

 

q8.PNG

 

Best Regards,
Qiuyun Yu

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

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

 

v-qiuyu-msft
Community Support
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:

 

a2.PNGa3.PNG

 

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

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.