我试图找到一种方法来计算仅出现在表格中的列组中的空白单元格(而不是数据集本身),遗憾的是我无法找到这样做的方法。
感谢您的帮助
答案 0 :(得分:0)
我尝试根据您的要求创建示例报告。我可以计算空单元格,但该点是您要显示此信息的位置...
让我解释一下,我是如何努力实现这一目标的
编写代码自定义代码
Dim CntEmpty AS INTEGER=0
Public Function CountCell(SalesValue AS INTEGER,Flag AS Boolean) AS INTEGER
IF (SalesValue <=0) THEN
CntEmpty =CntEmpty +1
IF(Flag) THEN
RETURN CntEmpty
ELSE
RETURN 0
END IF
ELSE
RETURN SalesValue
END IF
END FUNCTION
在Cell Value(写表达式)上调用函数
答案 1 :(得分:-1)
在表达式中,从所有列中都有数据的列中减去包含数据的行(即您的主列)
render() {
// const { url, app, toggleOpenDrawer, bgcolor } = this.props;
const { app, toggleOpenDrawer, customizedTheme } = this.props;
const url = stripTrailingSlash(this.props.url);
const collapsed = clone(app.collapsed) && !clone(app.openDrawer);
const { openDrawer } = app;
const mode = collapsed === true ? 'vertical' : 'inline';
const onMouseEnter = event => {
if (openDrawer === false) {
toggleOpenDrawer();
}
return;
};
const onMouseLeave = () => {
if (openDrawer === true) {
toggleOpenDrawer();
}
return;
};
const scrollheight = app.height;
const styling = {
backgroundColor: customizedTheme.backgroundColor
};
const submenuStyle = {
backgroundColor: 'rgba(0,0,0,0.3)',
color: customizedTheme.textColor
};
const submenuColor = {
color: customizedTheme.textColor
};
return (
<SidebarUsuarioWrapper>
<Sider
trigger={null}
collapsible={true}
collapsed={collapsed}
width="240"
className="isomorphicSidebar"
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
style={styling}
>
<Logo collapsed={collapsed} />
<Scrollbars
renderView={this.renderView}
style={{ height: scrollheight - 70 }}
>
<Menu
onClick={this.handleClick}
theme="dark"
mode={mode}
openKeys={collapsed ? [] : app.openKeys}
selectedKeys={app.current}
onOpenChange={this.onOpenChange}
className="isoDashboardMenu"
>
<Menu.Item key="email">
<Link to={`${url}/email`}>
<span className="isoMenuHolder" style={submenuColor}>
<i className="ion-android-mail" />
<span className="nav-text">
Email
</span>
</span>
</Link>
</Menu.Item>
<Menu.Item key="favoritos">
<Link to={`${url}/favoritos`}>
<span className="isoMenuHolder" style={submenuColor}>
<i className="material-icons">
thumb_up
</i>
<span className="nav-text">
Favoritos
</span>
</span>
</Link>
</Menu.Item>
<Menu.Item key="cadastro">
<Link to={`${url}/cadastro`}>
<span className="isoMenuHolder" style={submenuColor}>
<i className="material-icons">
assignment
</i>
<span className="nav-text">
Cadastro
</span>
</span>
</Link>
</Menu.Item>
<Menu.Item style={{marginTop:'30px'}} key="est_cadastro">
<Link to={`/estabelecimento/cadastro`}>
<span className="isoMenuHolder" style={submenuColor}>
<i className="material-icons" style={{fontSize:'22px'}}>
store
</i>
<span className="nav-text">
Painel Anúncio
</span>
</span>
</Link>
</Menu.Item>
<Menu.Item key="categoria">
<Link to={'/principal/categorias'}>
<span className="isoMenuHolder" style={submenuColor}>
<i className="material-icons">
format_align_left
</i>
<span className="nav-text">
Categorias
</span>
</span>
</Link>
</Menu.Item>
</Menu>
</Scrollbars>
</Sider>
</SidebarUsuarioWrapper>
);