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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kiranshetty_11
Frequent Visitor

Table does not allow to update conditional formatting

I had added a conditional formating on a table through a measure which I modified which no longer was elligible for the visual. The visual doesnt allow me to remove the conditional formatting since its no longer recognized as a table (conditional formatting options is no longer visible in 'Format' tab)

 

Only option for the user here is to recreate the table and add a new conditional formatting as desired.

1 ACCEPTED SOLUTION

hi  @kiranshetty_11 

Min/Max should work, you could try it, and if you still have problem, please share your sample pbix file for us have a test, that will be a great help.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
Pragati11
Super User
Super User

Hi @kiranshetty_11 ,

 

Can you add a screesnhot on your problem please? This doesn't help much.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

cf_powerBI.PNG

Basically, in the 'Table' visual you can no longer see  'Conditional formatting' option due to an error in the conditional formatting (measure) I had put on the field through a measure.cf_powerBI2.PNG Hope this helps clarify my problem

Hi @kiranshetty_11 ,

 

Can you delete this measure of your's which is giving error and check?

I can't reproduce this error at my end. Can you share your pbix file by removing any sensitive information?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

I need both measures in my model so I have no option but to recreate the table with a new measure altogether.

Below are the 2 measure I have used for formatting: 

1) . Card Formatting
Color_code = SWITCH(
TRUE(),
VALUES('Table'[Trainings]) <> "abc", "#E9E4E2",
[abc % complete] >= 0.945,
"#88cc00", AND( [abc % complete] >= 0.895, [abc% complete] < 0.945 ),
"#FFFF00", AND( [abc % complete] >= 0.745, [abc % complete] < 0.895 ),
"#FFBF00", "#FF0000"
)
2). Table formatting
Color_code = SWITCH(
TRUE(),
[abc % complete] >= 0.945,
"#88cc00", AND( [abc % complete] >= 0.895, [abc% complete] < 0.945 ),
"#FFFF00", AND( [abc % complete] >= 0.745, [abc % complete] < 0.895 ),
"#FFBF00", "#FF0000"
)
In measure 1 I have to add values function since I need the card to reflect formatting only if the value is selected. This measure cannot be used in the 'Table' visual since it gives the below error:

Error Message:
MdxScript(Model) (83, 5) Calculation error in measure 'Data'[Overall Color_code]: A table of multiple values was supplied where a single value was expected.

Hope this clarifies.

hi @kiranshetty_11 

first, for table visual, conditional format is here:

right-click field which you want to do conditional format

3.JPG

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting

 

second, do not use VALUES in the measure, just please use MAX/MIN instead.

 

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for looking into this issue however CF is not available in the 'Fields' tab as well.

 

Also I am using values function since its a text. Not sure Min/Max would work on this case? 

 

cf_powerBI3.PNG

hi  @kiranshetty_11 

Min/Max should work, you could try it, and if you still have problem, please share your sample pbix file for us have a test, that will be a great help.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.