Forum Discussion
conditional formatting by field
- Anonymous8 years ago
Anonymous I am not sure if I got your first message, but I am providing a solution for your second message. If you need more help please post a power bi file so its a little easier to understand.
Try writing a switch. I am just writing a bit of the code, I am sure you can add the required values.
VAR TimeHour = HOUR(DATETIME Field you are using to extract time by hour text) RETURN SWITCH(TRUE(), TimeHour IN {4,5,6,7,8} && Sum(Journal[Quantity]) <= 139, 1, TimeHour = 9 && Sum(Journal[Quantity]) <= 104, 1 TimeHour IN {10,11} && Sum(Journal[Quantity]) <= 139, 1,, 2)
Anonymous I am not sure if I got your first message, but I am providing a solution for your second message. If you need more help please post a power bi file so its a little easier to understand.
Try writing a switch. I am just writing a bit of the code, I am sure you can add the required values.
VAR TimeHour = HOUR(DATETIME Field you are using to extract time by hour text)
RETURN SWITCH(TRUE(),
TimeHour IN {4,5,6,7,8} && Sum(Journal[Quantity]) <= 139, 1,
TimeHour = 9 && Sum(Journal[Quantity]) <= 104, 1
TimeHour IN {10,11} && Sum(Journal[Quantity]) <= 139, 1,,
2)
Thanks so much for the quick reply. I have been traveling and unable to try this yet.... However, still having an issue with the data being split out in the matrix as a "type". Should this same logic be applied in that case when the user drills down into this layer?
- Anonymous8 years agoNot applicable
Anonymous I believe so.