Forum Discussion

MiBel_'s avatar
MiBel_
Copper Contributor
Jan 09, 2022
Solved

Pivot table from combined datasets

Hi all, I was thinking I was getting used to using a pivot table with multiple source data, but I got lost in a simple problem, where I can not simply find a solution.   I split my problem into tw...
  • SergeiBaklan's avatar
    Jan 09, 2022

    MiBel_ 

    Let keep relationships as

    and create two measures

    Cost Delivered:=SUMX( Results, Pricelist[Součet Price] )

    and

    OnTime Delivered:=CALCULATE( [Cost Delivered], TREATAS( VALUES(OnTime[ID]), Results[ID] ))

    First measure returns

    second one

    I'm not sure why in Targets is 10 for John - both 01-01 and 02-02 are in time

Resources