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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
jsbourni
Helper II
Helper II

Conditional formatting with parameter value not working

Hi,

I had a working conditional formatting based on the selected value of a parameter. For unknown reasons, it's not working anymore. Here's the DAX:

 

Measure
Delay = 
CALCULATE(
    DATEDIFF(
        MAX(students[date]), TODAY(), DAY)
        )

Parameter
Threshold (days) = GENERATESERIES(0, 500, 5)

Cond. formatting measure
Delay color flag = 
IF(SELECTEDEVALUE(Threshold (days)) < [Delay], "#ff0000","#66ff33")

 

In the table, cells are all red not matter the parameter's value. Both fields (Delay and parameter) are integers. As I mentioned, it was working. Could it be a version issue?

Thanks

7 REPLIES 7
Anonymous
Not applicable

Hi, @jsbourni 

May I ask if you have gotten this issue resolved? If it is solved, please share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.


If it is not resolved, I hope you will provide the full .pbix file via OneDrive or SharePoint. Please be careful to remove all sensitive information and we will do our best to provide ideas for your issue.

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

not working where? In the Desktop or in the service?  When did it stop working?

 

lbendlin_0-1730925911091.pnglbendlin_1-1730925932080.png

 

Hi, 

Desktop version. Can't tell if it's 2-3 weeks or more as I just saw that (instead of being reported by users...). We made some minor changes in the table behind but nothing that would have affected these specific values.

Thanks

Can you pick a potential culprit from the list?

Hard to tell. If I had to guess I would go for the last one (2.135.7627.0), but who knows. Do you have those up to June? If nobody saw it until now, it is more than likely that it was not consulted at all during summer, so it could come from a previous version. Thanks.

lbendlin_0-1730986519307.png

 

lbendlin_1-1730986580968.png

 

Can't find an issue directly related to mine in the list. Not a specialist though.Thanks

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors