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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
nb123nb
Frequent Visitor

Conditional formatting not working as expected

I have a report which is a .pbit (connects to ADO data) - when a user loads the report they have a particular page that has a table visual which has conditional formatting. When the report first loads it looks like so, which is incorrect as all rows should be green:

 

error1.jpg

 

When I change the date (but not the other two slicers) it updates:

 

Error2.jpg

 

The table being used is called 'Weeks' which is created via:

 

Weeks = GENERATESERIES(1,16,1)

 

 

The column is:

 

Future = TODAY()+Weeks[WeeksMultipliedBy7]

 

 

With a measure of:

 

WeeksMultipliedBy7 = SUMX(Weeks, Weeks[Weeks] * 7)

 

 

How can I get it so that upon report load the table conditional formatting shows correctly?

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @nb123nb,

Current power bi desktop support to create dynamic calculated column/table based on filter effects. They do not work on the same level, and you can't use the child level to affect their parents.
For measure expressions, they can dynamic calculated based on current row and filter contents, but their result will be fixed to static values if you invoke them in calculated columns.

Row Context and Filter Context in DAX - SQLBI

Notice: the data level of power bi(from parent to child level)

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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