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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Measure for XTD Variance

I am trying to create a measure to compare my actual daily values to my forecasted daily values to a dynamic date range.

 

XTD Measure.PNG

 

For example, I have several sheets in my report that look at different date range views of the graph above. Some are YTD, some are QTD and some are snapshots of individual months. 

 

The green line are the daily actuals and the black line is the forecast. I need a measure to essential compute the variance up until the latest data point of actuals and ignoring future days in the forecast. 

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

For your scenario, could you please share some data sample which could reproduce your scenario and your desired output so that we could have a test on it and get the solution more quickly.

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-piga-msft 

 

Hi Cherry,

 

Here is a small sample of data that is in my data set.

 

YearMonthDaySum of Net Forecast ProductionSum of Net Actual Production
2019April100
2019April200
2019April300
2019April400
2019April500
2019April600
2019April700
2019April800
2019April90257.93
2019April100330.48
2019April1101301.87
2019April120.03702.18
2019April13170.04752.76
2019April14258.071555.37
2019April15339.191887.92
2019April16420.312274.54
2019April17611.272288.46
2019April18726.332915.12
2019April19814.973433.32
2019April20904.013528.04
2019April21993.473938.37
2019April221083.353540.84
2019April231173.73733.62
2019April241264.534251.15
2019April251355.875872.98
2019April261447.745677.79
2019April271540.176619.26
2019April281633.227455.36
2019April291909.779296.28
2019April302369.867735.63
2019May16754.029649.03
2019May26891.299605.51
2019May37660.639759.23
2019May48065.6110867.72
2019May58195.8310167.88
2019May68322.879944.31
2019May78433.1810478.11
2019May88541.4810476.03
2019May98579.1310316.17
2019May108592.311000.39
2019May118602.579784.22
2019May128613.2710675.46
2019May138628.29394.35
2019May148634.659059.49
2019May158631.339580.24
2019May168625.759351.24
2019May178561.469603.78
2019May188473.629241.26
2019May198387.929000.09
2019May208304.259211.22
2019May218222.54 
2019May228142.73 
2019May238064.76 
2019May247988.53 
2019May257913.98 
2019May267841.08 
2019May277769.75 
2019May287699.96 
2019May297631.61 
2019May307564.68 
2019May317499.13 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.