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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.