Forum Discussion
karvMe
Mar 28, 2023Copper Contributor
Even with relationship, pibot table field always shows SUM
I'm trying to create a pivot table from two tables. The first table (Table1) has a unique column "HOST" and informations about that host and the second (Table2) has the same column but with dupl...
- Mar 31, 2023
See it, thank you.
So, we add both Hosts and Tomcat tables to data model and create relationship:
To calculate from many-to-one we may create the measure for RAM available
tomcat ram:=CALCULATE( SUM( Hosts[RAM] ), CROSSFILTER( Hosts[HOST], tomcat[HOST], Both ) )
and create PivotTable from data model
Please see in attached file
SergeiBaklan
Mar 28, 2023Diamond Contributor
Could you provide small sample of source data (few records for each table is enough) ?
karvMe
Mar 29, 2023Copper Contributor
Done, thank you.
- SergeiBaklanMar 30, 2023Diamond Contributor
Where is it?
- karvMeMar 31, 2023Copper ContributorI've added it in the end of my post.
- SergeiBaklanMar 31, 2023Diamond Contributor
See it, thank you.
So, we add both Hosts and Tomcat tables to data model and create relationship:
To calculate from many-to-one we may create the measure for RAM available
tomcat ram:=CALCULATE( SUM( Hosts[RAM] ), CROSSFILTER( Hosts[HOST], tomcat[HOST], Both ) )
and create PivotTable from data model
Please see in attached file