在PowerPivot模型中向数据透视表添加度量时,为什么我的Slicers会更改行为?

时间:2018-07-24 12:49:53

标签: excel powerpivot excel-2016 slicers

我正在运行 <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>false</filtering> </resource> </resources> <testResources> <testResource> <directory>src/test/resources</directory> <filtering>false</filtering> </testResource> </testResources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.7</version> <configuration> <encoding>UTF-8</encoding> </configuration> <executions> <execution> <id>default-resources</id> <phase>process-resources</phase> <goals> <goal>resources</goal> </goals> </execution> <execution> <id>default-testResources</id> <phase>process-test-resources</phase> <goals> <goal>testResources</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> <executions> <execution> <id>default-testCompile</id> <phase>test-compile</phase> <goals> <goal>testCompile</goal> </goals> </execution> <execution> <id>default-compile</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration /> </plugin> <plugin> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.1</version> <configuration> <skip>true</skip> </configuration> <executions> <execution> <id>default-deploy</id> <phase>deploy</phase> <goals> <goal>deploy</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.3</version> <executions> <execution> <id>default-deploy</id> <phase>deploy</phase> <goals> <goal>deploy</goal> </goals> </execution> </executions> <configuration> <skipStaging>true</skipStaging> </configuration> </plugin> </plugins> </build> ,并且已经建立了Excel 2016模型。 在我的PowerPivot上,我插入了四个Pivot Table,分别是:市场,代理商,酒店和WeekGroup。

slicers模型中的所有关系均已正确设置。数据透视表的外观如下(当它已被PowerPivot上的某些变量过滤时):

Slicers

以上已在Row Labels PickUp PickUp (Same Period Last Year) WeekGroup 10 160 388 Grand Total 160 388 酒店上选择了酒店A。我更改了所有Slicer的属性,以便它们隐藏没有数据的项目。 选中酒店A后,slicers代理商现在仅显示适用于酒店A的代理商名称和Slicer中显示的时间段。到目前为止,一切都很好。

我创建了一个新的pivot table,它基本上是PickUp和PickUp(去年同期)之间的百分比变化。当我将此measure添加到Measure时,pivot table代理现在会在数据源中显示 ALL 代理的名称。隐藏没有数据的项目的设置似乎已被覆盖!

这是正常行为还是我在这里错过了什么?

0 个答案:

没有答案