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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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