Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Calculate error or Data format issue?

I have two data tables:

 

Monthly Targets

Grid Gate Month Plan

San Joan6. InstalledJanuary39
Orange6. InstalledJanuary18
North6. InstalledJanuary22
West6. InstalledJanuary71
East6. InstalledJanuary92
High6. InstalledJanuary84
Central6. InstalledJanuary15
San Joan5. Rel to Construction not yet InstalledJanuary311
Orange5. Rel to Construction not yet InstalledJanuary182
North5. Rel to Construction not yet InstalledJanuary358
West5. Rel to Construction not yet InstalledJanuary381
East5. Rel to Construction not yet InstalledJanuary228
Highland5. Rel to Construction not yet InstalledJanuary621
Central5. Rel to Construction not yet InstalledJanuary329
San Joan4. Planning Complete not Released to ConstructionJanuary446
Orange4. Planning Complete not Released to ConstructionJanuary518
North4. Planning Complete not Released to ConstructionJanuary634
West4. Planning Complete not Released to ConstructionJanuary588
East4. Planning Complete not Released to ConstructionJanuary240
High4. Planning Complete not Released to ConstructionJanuary157
Central4. Planning Complete not Released to ConstructionJanuary493
San Joan2. Sent to Grid for Planning, not yet PlannedJanuary852
Orange2. Sent to Grid for Planning, not yet PlannedJanuary1441
North2. Sent to Grid for Planning, not yet PlannedJanuary631
West2. Sent to Grid for Planning, not yet PlannedJanuary292
East2. Sent to Grid for Planning, not yet PlannedJanuary546
High2. Sent to Grid for Planning, not yet PlannedJanuary1964
Central2. Sent to Grid for Planning, not yet PlannedJanuary611

 

And Actual

 

Grid 2. Sent to Grid for Planning, not yet Planned 4. Planning Complete not Released to Construction 5. Rel to Construction not yet Installed 6. Installed

West1127749710381
East13331036965349
North Coast11621025994480
Orange601382377147
Central332824811993770
San Joan1068593560244
Central1569919845455

 

Note: The Plan table has Jan-Dec on it but I cut it off.

 

On my report page I have a month slicer and am able to successfully graph the plans next to the actuals and the plans adjust according to the month filter.

 

I'm trying to create a variance measurement between plan (by month) and actual.

My problem is I can't create a measure or column filter for the gates. I've tried using CALCULATE, SUMX, FILTER(S), and  LOOKUPVALUE.   The problem appears to be that there's 12 values for each gate and grid. Am I going about this wrong? Should the data be formatted differently?

 

I'm trying to show "Here we are this month, here is where we are compared to next month's plan"

1 Reply

  • v-eachen-msft's avatar
    v-eachen-msft
    Community Support

    Hi Anonymous ,

     

    Does your actual table have month columns? If it does, you need to pivot plan table or unpivot actual table. The final goal is to let two tables have the same format. Then you can use LOOKUPVALUE() function to get your result.