Forum Discussion
PKPK90
Helper I
3 years agoTotals from SummarizeColumns
Hi, I have created new table SupplyDemandPerSiteItem = SUMMARIZECOLUMNS( DistinctTable[Site], DistinctTable[ItemKey], "Demand",MAX(DistinctTable[RunningRequirement]), "Supply...
Anil_kapkoti
3 years agoNew Member
Check this one
SupplyDemandPerItem =
VAR DemandTable =
SUMMARIZE(
DistinctTable,
DistinctTable[Site],
DistinctTable[ItemKey],
"Demand", MAX(DistinctTable[RunningRequirement])
)
VAR SupplyTable =
SUMMARIZE(
DistinctTable,
DistinctTable[Site],
DistinctTable[ItemKey],
"Supply", MAX(DistinctTable[RunningReception])
)
RETURN
SUMMARIZECOLUMNS(
DistinctTable[ItemKey],
"Demand", SUMX(DemandTable, [Demand]),
"Supply", SUMX(SupplyTable, [Supply])
)
- PKPK903 years ago
Helper I
Hi, I am receiving the same values for every Item.