Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello all,
Just getting back to PBI after a 2-3yr hiatus. The interface and a lot has changed in PBI. Trying to generate and format cells for the table contents below. Step 1- Step 6 columns are the outputs i am trying to generate from using a function/formula/logical expression. The first 3 columns are fixed. I want the values in columns step 1 to 6 be dates based on the conditions below. Using just Step 1 column as an example below.
Step 1 column
If Deadline minus 30 days is less than today AND if the value/string in status column is equal to step 1, then publish the date and format the cell to be yellow (late). Else don't publish a date and cell should be green (early/ontime).
My challenge is how do I get PBI to look at the string values "Step 1" and use that for the evaluation in the logical expression for each row values the expression is being evaluated against? It's not giving me the right output when I use COUNTAX. Any help will be appreciated. Thanks
Step1value = IF(AND(Deadline - 30 < TODAY (), COUNTAX (Status, "Step 1")), Deadline - 30, BLANK ())
Solved! Go to Solution.
Hi @Amaoa83 ,
Modify you calculated column and create below measure:
Step1Value =
IF (
AND (
Projects[Deadline] - 30 < TODAY(),
Projects[Status] = "Step 1"
),
Projects[Deadline] - 30,
BLANK()
)
Step1Color =
IF (
ISBLANK(MAX(Projects[Step1Value])),
"Green",
"Yellow"
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Amaoa83 ,
Modify you calculated column and create below measure:
Step1Value =
IF (
AND (
Projects[Deadline] - 30 < TODAY(),
Projects[Status] = "Step 1"
),
Projects[Deadline] - 30,
BLANK()
)
Step1Color =
IF (
ISBLANK(MAX(Projects[Step1Value])),
"Green",
"Yellow"
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.