Give me forecast accuracy code in power bi Dax,and if the forecast is zero and actual…
- User
Give me forecast accuracy code in power bi Dax,and if the forecast is zero and actual sales also zero let accuracy equal 100٪
- Assistant
In Power BI, creating a measure to calculate forecast accuracy can vary depending on your specific requirements or the model of accuracy you wish to implement. However, a common model is to use the Mean Absolute Percentage Error (MAPE), but since you want the accuracy to be 100% when both forecast and actual sales are zero, we would need to adjust the MAPE calculation accordingly.