Forum Discussion
Icon Conditional Formatting and Calculation Groups using Field Values
I've just come across the icon conditional formatting and calculation groups. When I was trying to combine them to reduce the time needed in doing the conditional formatting on each columns I thought I'd give it a go to apply it through calculation groups.
So first I tested out creating a measure for doing the CF to test doing it without calculation groups and it worked fine.
Any idea on why this is? Is it an order of operations? Like is conditional formatting applied before a calculated group is applied and so it's recognising that the values that the calculated group would modify the column to be? It doesn't give any errors, it just doesn't allow it's selection so it's kind of difficult to troubleshoot.
Thanks in advance to anyone that has an answer to this.
EDIT: Just thought I should note because I didn't make it clear. I am trying to apply the conditional formatting to a measure. So it's an explicit aggregration for both the CF measure and the measure it's being applied to. Just to rule out the implicit complications you can get when using Calculated Groups.
Ok I think I have discovered the root cause.
Because the underlying measure is originally of a type that is Integer, it is not adjusting to the type String that the Calculation Group is adjusting it to. And a field value source requires a measure to have a type of String.
So if I convert the measure to output a string initially and then do the switch on that through the Calculation Group it is now selectable.
So the problem is that the measure maintains it's original Data Type even if the Calculation Group is changing the output.
10 Replies
- MFelixSuper User
Hi Ashes ,
When you mix calculation groups with condittional formatting everything works differently.
Check the videos below for explanation on what is happening and how to solve it.
https://www.youtube.com/watch?v=Y3d5CrVbbis&list=PLiYSIjh4cEx2s8-jXBhv5aCu5_6F9zQ3I&index=4
https://www.youtube.com/watch?v=YU5nddHQ-oo&list=PLiYSIjh4cEx2s8-jXBhv5aCu5_6F9zQ3I&index=8
- AshesFrequent Visitor
Thanks for the vids. Unfortunately they didn't seem to address the issue I am experiencing, where I am unable to select a measure tweaked by the Calculated Group for a Field Value option for Icon Conditional Formatting, but is selectable as a Rule input to the Icon Conditional Formatting (just can't be used there because it doesn't contain values).
Effort to provide them appreciated though.
- AshesFrequent Visitor
Ok I think I have discovered the root cause.
Because the underlying measure is originally of a type that is Integer, it is not adjusting to the type String that the Calculation Group is adjusting it to. And a field value source requires a measure to have a type of String.
So if I convert the measure to output a string initially and then do the switch on that through the Calculation Group it is now selectable.
So the problem is that the measure maintains it's original Data Type even if the Calculation Group is changing the output.