Forum Discussion

littlevillage's avatar
littlevillage
Iron Contributor
Jul 28, 2022
Solved

How can I combine formula in Data Model

Hi, I am trying to combine data from Data Model into a Pivot Table , I have written some Measures but it hasn't shown the expect result. I have added an image and the link of the Samplefile below ...
  • SergeiBaklan's avatar
    SergeiBaklan
    Jul 30, 2022

    littlevillage 

    If build relationships as

    your PivotTable gives practically desired result.

    The only it's better to use

    perc late A:=DIVIDE( [Total late], [Total ontime], BLANK() )

    instead of

    perc late:=[Total late]/[Total ontime]

    As third parameters in DIVIDE you may use whatever you want instead of BLANK().

    Another point we have blank for hub areas, that means not all areas appears in Table1 and Table2  are in Table3. But that's better to adjust Table3.

    Please check in attached file.

     

Resources