Hi,
i have this mondrian 4 structure.
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Schema name="CostiRicavi" metamodelVersion="4.0">


	<PhysicalSchema>
		
		<Table schema="contabilita" name="cubo_costi_ricavi" alias="costi_ricavi_fact"/>
		
		<AutoGeneratedDateTable schema="contabilita" name="time_by_day_generated" startDate="2010-01-01" endDate="2020-12-31" alias="time_dimension">
				<ColumnDefs>
					<ColumnDef name="time_id">
						<TimeDomain role="YYYYMMDD"/>
					</ColumnDef>
					<ColumnDef name="year">
						<TimeDomain role="YEAR"/>
					</ColumnDef>
					<ColumnDef name="month">
						<TimeDomain role="MONTH"/>
					</ColumnDef>
					<ColumnDef name="quarter"/>
					<ColumnDef name="week_of_year"/>
					<ColumnDef name="day_of_month"/>
					<ColumnDef name="the_month"/>
					<ColumnDef name="the_date">
						<TimeDomain role="DATE"/>
					</ColumnDef>
				</ColumnDefs>
				<Key>
					<Column name="the_date"/>
				</Key>
		</AutoGeneratedDateTable>
		
		
		<Link source="time_dimension" target="costi_ricavi_fact">
            <ForeignKey>
                <Column name="data_competenza"/>
            </ForeignKey>
        </Link>


	</PhysicalSchema>


	<Dimension name="Tempo" table="time_dimension" key="Giorno" type="TIME">
		<Attributes>
			<Attribute name="Anno" uniqueMembers="true" levelType="TimeYears" datatype="Integer" keyColumn="year" nameColumn="year" orderByColumn="year"/>
			
			<Attribute name="Mese" uniqueMembers="false" levelType="TimeMonths" datatype="String"  nameColumn="the_month" orderByColumn="month">
				<Key>
					<Column name="year"/>
					<Column name="month"/>
				</Key>
			</Attribute>
			
			<Attribute name="Giorno" uniqueMembers="false" levelType="TimeDays" datatype="Date" keyColumn="the_date" nameColumn="day_of_month" orderByColumn="day_of_month"/>
		</Attributes>
	
		<Hierarchies>
			<Hierarchy name="Tempo" allMemberName="Tutti gli anni" allLevelName="Tutti i giorni" hasAll="true">
				<Level attribute="Anno"/>
				<Level attribute="Mese"/>
				<Level attribute="Giorno"/>
			</Hierarchy>
		</Hierarchies>	
	</Dimension> 
	
	<Dimension name="Articolo" key="CodArticolo" table="costi_ricavi_fact">
		<Attributes>
			<Attribute name="CodArticolo" keyColumn="articolo_descr" nameColumn="articolo_descr" orderByColumn="articolo_descr" hasHierarchy="false" />
		</Attributes>
		<Hierarchies>
			<Hierarchy name="Articolo">
				<Level attribute="CodArticolo"/>
			</Hierarchy>
		</Hierarchies>
	</Dimension>
	
	<Dimension name="Anno" key="CodAnno" table="costi_ricavi_fact">
		<Attributes>
			<Attribute name="CodAnno" keyColumn="anno" nameColumn="anno" orderByColumn="anno" hasHierarchy="false" />
		</Attributes>
		<Hierarchies>
			<Hierarchy name="Anno">
				<Level attribute="CodAnno"/>
			</Hierarchy>
		</Hierarchies>
	</Dimension>
	
	<Dimension name="Mese" key="CodMese" table="costi_ricavi_fact">
		<Attributes>
			<Attribute name="CodMese" keyColumn="mese" nameColumn="mese" orderByColumn="mese" hasHierarchy="false" />
		</Attributes>
		<Hierarchies>
			<Hierarchy name="Mese">
				<Level attribute="CodMese"/>
			</Hierarchy>
		</Hierarchies>
	</Dimension>
	
	<Dimension name="Cdc" key="CodCdc" table="costi_ricavi_fact">
		<Attributes>
			<Attribute name="CodCdc" keyColumn="id_cdc" nameColumn="cdc_codice" orderByColumn="cdc_codice" hasHierarchy="false" />
		</Attributes>
		<Hierarchies>
			<Hierarchy name="Cdc">
				<Level attribute="CodCdc"/>
			</Hierarchy>
		</Hierarchies>
	</Dimension>
	
	<Dimension name="Commessa" key="CodCommessa" table="costi_ricavi_fact">
		<Attributes>
			<Attribute name="CodCommessa" keyColumn="id_commessa" nameColumn="commessa" orderByColumn="commessa" hasHierarchy="false" />
		</Attributes>
		<Hierarchies>
			<Hierarchy name="Commessa">
				<Level attribute="CodCommessa"/>
			</Hierarchy>
		</Hierarchies>
	</Dimension>
	
	<Dimension name="Cliente Commessa" key="CodClienteCommessa" table="costi_ricavi_fact">
		<Attributes>
			<Attribute name="CodClienteCommessa" keyColumn="id_cliente" nameColumn="cliente" orderByColumn="cliente" hasHierarchy="false" />
		</Attributes>
		<Hierarchies>
			<Hierarchy name="Cliente Commessa">
				<Level attribute="CodClienteCommessa"/>
			</Hierarchy>
		</Hierarchies>
	</Dimension>
	
	<Dimension name="Soggetto" key="CodSoggetto" table="costi_ricavi_fact">
		<Attributes>
			<Attribute name="CodSoggetto" keyColumn="id_soggetto" nameColumn="denominazione_soggetto" orderByColumn="denominazione_soggetto" hasHierarchy="false" />
		</Attributes>
		<Hierarchies>
			<Hierarchy name="Soggetto">
				<Level attribute="CodSoggetto"/>
			</Hierarchy>
		</Hierarchies>
	</Dimension>
	
	<Dimension name="Template Documento" key="CodTemplateDocumento" table="costi_ricavi_fact">
		<Attributes>
			<Attribute name="CodTemplateDocumento" keyColumn="descrizione_template" nameColumn="descrizione_template" orderByColumn="descrizione_template" hasHierarchy="false" />
		</Attributes>
		<Hierarchies>
			<Hierarchy name="Template Documento">
				<Level attribute="CodTemplateDocumento"/>
			</Hierarchy>
		</Hierarchies>
	</Dimension>
	
	<Dimension name="Conto" key="DescConto" table="costi_ricavi_fact">
		<Attributes>
			<Attribute name="DescConto" keyColumn="id_conto" nameColumn="pdc_descrizione" orderByColumn="pdc_descrizione" hasHierarchy="false" />
		</Attributes>
		<Hierarchies>
			<Hierarchy name="Conto">
				<Level attribute="DescConto"/>
			</Hierarchy>
		</Hierarchies>
	</Dimension>
	


	<Cube name="Costi_Ricavi">
		<Dimensions>
			<Dimension source="Tempo"/>
			<Dimension source="Articolo" />
			<Dimension source="Anno"/>
			<Dimension source="Mese" />
			<Dimension source="Cdc" />
			<Dimension source="Commessa" />
			<Dimension source="Cliente Commessa" />
			<Dimension source="Soggetto" />
			<Dimension source="Template Documento" />
			<Dimension source="Conto" />
		</Dimensions>
    	
		<MeasureGroups>
			<MeasureGroup name="Imponibile" table="costi_ricavi_fact">
				<Measures>
					<Measure column="costi" aggregator="sum" name="costi" />
				</Measures>
				<DimensionLinks>
					<ForeignKeyLink dimension="Tempo" foreignKeyColumn="data_competenza" attribute="Giorno" />
					<FactLink dimension="Anno"/>
					<FactLink dimension="Mese"/>
					<FactLink dimension="Articolo"/>
					<FactLink dimension="Cdc"/>
					<FactLink dimension="Commessa"/>
					<FactLink dimension="Cliente Commessa"/>
					<FactLink dimension="Soggetto"/>
					<FactLink dimension="Template Documento"/>
					<FactLink dimension="Conto"/>
				</DimensionLinks>
			</MeasureGroup>
		</MeasureGroups>
	</Cube>
	
	<Cube name="Costi_Ricavi_Confronti">
		<Dimensions>
			<Dimension source="Tempo"/>
			<Dimension source="Articolo" />
			<Dimension source="Cdc" />
			<Dimension source="Commessa" />
			<Dimension source="Cliente Commessa" />
			<Dimension source="Soggetto" />
			<Dimension source="Template Documento" />
			<Dimension source="Conto" />
		</Dimensions>
	
	<MeasureGroups>
		<MeasureGroup name="Imponibile" table="costi_ricavi_fact">
			<Measures>
				<!-- <Measure column="imponibile" aggregator="sum" name="totale" /> -->
				<Measure column="costi" aggregator="sum" name="Costi" />
				<!-- <Measure column="ricavi" aggregator="sum" name="ricavi" /> -->
			</Measures>
			<DimensionLinks>
				<ForeignKeyLink dimension="Tempo" foreignKeyColumn="data_competenza" />
				<FactLink dimension="Articolo"/>
				<FactLink dimension="Cdc"/>
				<FactLink dimension="Commessa"/>
				<FactLink dimension="Cliente Commessa"/>
				<FactLink dimension="Soggetto"/>
				<FactLink dimension="Template Documento"/>
				<FactLink dimension="Conto"/>
			</DimensionLinks>
		</MeasureGroup>
	</MeasureGroups>
	<CalculatedMembers>
		<CalculatedMember name="Costi Anno Prec." dimension="Measures" formula="([Measures].[Costi],ParallelPeriod([Tempo].[Tempo].[Anno],1,[Tempo].[Tempo].CurrentMember))">
		</CalculatedMember> 
	</CalculatedMembers> 
	
	</Cube>
	 


</Schema>
I'm using FlexMonster to show this OLAP.
When OLAP is started, i can see all the values correctly.
If i show only "Costi" Measure, i can filter all the values correctly.
On the other hand, if i show "Costi" and "Costi Anno Prec." measures, When i try to filter the Dimension "Tempo" i have a Flexmonster generic error and this Error on mondrian ->
Mondrian Error:Internal error: member [Tempo].[Tempo].[Tutti gli anni].[(Total)] not found among its siblings

This is the MDX Query executed that throw an exception

[with set [measureSet] as '{[Measures].[Costi], [Measures].[Costi Anno Prec.]}'
set [Tempo.TempoFilterSet] as '{[Tempo].[Tempo].[2012], [Tempo].[Tempo].[2013]}'
set [Tempo.TempoCalculatedSet] as '{[Tempo].[Tempo].[Tutti gli anni].[(Total)]}'
set [set_1_set] as '{Hierarchize(Distinct(Union([Tempo.TempoFilterSet], [Tempo.TempoCalculatedSet])))}'
set [columnHierarchiesSet] as '{Filter([set_1_set], NOT (IsEmpty([Measures].[Costi]) AND IsEmpty([Measures].[Costi Anno Prec.])))}'
set [columnSet] as '{Crossjoin([columnHierarchiesSet], [measureSet])}'
member [Tempo].[Tempo].[Tutti gli anni].[(Total)] as 'Aggregate({[Tempo].[Tempo].[2012], [Tempo].[Tempo].[2013]})'
select NON EMPTY [columnSet] DIMENSION PROPERTIES PARENT_UNIQUE_NAME, HIERARCHY_UNIQUE_NAME, MEMBER_TYPE ON COLUMNS
from [Costi_Ricavi_Confronti]
]

Someone can help me ?