使用标志自动填充甘特图视图 [英] Use of flags to autofill gantt view
问题描述
大家好,
我一直在使用旗帜自动在我的甘特图中创建自定义条样式和颜色。
Ive been using flags to create custom bar styles and colour in my gantt chart automatically.
你是现在可能已经超过了我,但是当我达到20个标志限制时我该怎么办?
You are probably already ahead of me by now but what do I do when I hit the 20 flag limit?
有没有办法解决这个问题?
Is there a way around this?
I我很高兴再次使用相同的颜色,因为会有一个自然的休息,但是我是否写了这个公式
I am happy to use the same colours again as there will be a natural break but hpow do I write the formula for this
例如我正在使用"IIf([Name] =" A04" ;,是,否)"目前
eg I am using "IIf([Name]="A04",Yes,No)" at the moment
如何说X或Y或Z然后是/否?
How do I say If X OR Y OR Z then Yes/No?
感谢您提供的任何帮助
Alex
推荐答案
您好Alex,
Hi Alex,
我们在Project中只有20个标志字段,这是正确的。
we have only 20 flag fields in Project, that's right.
但是您可以在一个公式中组合更多参数。最简单的方法是使用Switch功能。
But you can combine more parameters in one formula. The easiest way ist to use the Switch function.
对于您的示例,公式如下所示:Switch([Name] =" X"," Yes / No",[名称] =" Y","是/否",[名称] =" Z","是/否")
For your example the formula would look like this: Switch([Name]="X","Yes/No",[Name]="Y","Yes/No",[Name]="Z","Yes/No")
通用开关功能如下所示:切换(Expr1,Value1,Expr2,Value2,...)
The generic Switch Function Looks like this: Switch( Expr1, Value1, Expr2, Value2, ... )
希望,这有帮助。
问候
Bernhard Fischer
Bernhard Fischer
这篇关于使用标志自动填充甘特图视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!