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
karvMe
Mar 29, 2023Copper Contributor
Done, thank you.
SergeiBaklan
Mar 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