Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RSVFN2
New Member

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 1
v-eachen-msft
Community Support
Community Support

Hi @RSVFN2 ,

 

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.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.