Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I tried with below DAX queries to control the color of a rectangle shape. Both the queries are making the rectangle white color for blank values and other some values too. What would be the reason and solution ?
USING IF ---------
Hi @Anonymous ,
Which visual you were trying to use conditional formatting for? Currently only table or matrix support use conditional formatting. How did you set the conditional formatting? You can review the content in the following documentation for the details of conditional formatting.
Use conditional formatting in tables
Best Regards
Hello @Anonymous ,
check the values first with a table to see if the right values are produced.
Then you can change it to colors. This makes it easier to understand what is really going on.
If you want to provide the file I can also take a look where the error is.
Best regards
Denis
@selimovd I have tried giving in a table. The color values misbehaves when there are multiple values exists. Could you please help.
Please find the power BI file in link https://1drv.ms/u/s!Ah-kO6CqeTNOgh8lcsQahymsIZj_?e=BSuXDf
When you filter the Project UID, for some projects the color becomes white which has multiple values. In multiple value cases, one value has color indicator as blank and I need to avoid it or take any of the fields which has color.
Hey @Anonymous ,
there are a few issues with your report.
Your slicer is filtering on the column 'pjrep MSP_EpmProject_UserView'[ProjectUID] that has 491 IDs.
You added the column with the color to the column 'PlannedPayment'[ProjectUID] that has 154 IDs.
That means you just defined a color for 154 IDs and in the report you can filter 491 IDs. So at least 337 IDs that you chose from the list don't have a color defined. For these colors the background will stay white.
For the color you chose the first value of the column COSTIndicatorColor. So if you have multiple values selected as you mentioned a random/the first color in the current selection will be chosen.
Hey @Anonymous ,
could you fix your issues with the information from my last post?
I'm curious if you could solve this issue 🙂
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.