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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AllanBerces
Post Prodigy
Post Prodigy

Measure to Change Marker Color

Hi good day,

Pls can anyone help me to create the measure on how can i change the color of my marker. I have table below, what i want is turn the marker in to RED if the date already due and the Remarks is blank, turn GREEN if due or in coming if the remarks started.

AllanBerces_0-1722329893335.png

 

AllanBerces_1-1722329918206.png

 

Thank you

1 ACCEPTED SOLUTION

Instead of measure try creating calculated column

 

MarkerColor =
   IF(
       ISBLANK([Remarks]) && [DueDate] < TODAY(),
       "Red",
       IF(
           NOT(ISBLANK([Remarks])),
           "Green",
           "DefaultColor"  // You can set a default color if needed
       )
   )



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

4 REPLIES 4
bhanu_gautam
Super User
Super User

@AllanBerces , You can create a measure 

MarkerColor =
   IF(
       ISBLANK([Remarks]) && [DueDate] < TODAY(),
       "Red",
       IF(
           NOT(ISBLANK([Remarks])) && [DueDate] >= TODAY(),
           "Green",
           "DefaultColor"
       )
   )
 
Add this measure to visual and setup conditional formatting



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hi @bhanu_gautam by the wat Remarks and Date are in column.

 

Thank you

Instead of measure try creating calculated column

 

MarkerColor =
   IF(
       ISBLANK([Remarks]) && [DueDate] < TODAY(),
       "Red",
       IF(
           NOT(ISBLANK([Remarks])),
           "Green",
           "DefaultColor"  // You can set a default color if needed
       )
   )



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






HI @bhanu_gautam thank you for your reply, but the one you sent not working, the error show

"the value for "Remarks" cannot be detirmined. 

Thank you

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.