Forum Discussion

bilalkhokar73's avatar
bilalkhokar73
Helper IV
5 years ago
Solved

Forecast month need

I have target table which has itemid and target for future month I want to shwo sales and target graph or report , if sales not present then target will show I have month table, year and calendar table also. Sales coming from Transaction table Tras(sales) when i am putting normal target from target table and item from item table and sales from sales table then future target not coming relation is = Date with transaction date table, item with transaction item table , month table join with project date table, year with project year table date year with year table and month year with month table

  • Hi, bilalkhokar73 ;

    Through your description and the .pbix of your last post, you  could create two measures as follows:

    Amnt2 = CALCULATE(SUM([Amnt]),FILTER('sales',YEAR([date])=MAX('year'[year_code])&&MONTH([date])=MAX('month'[mont_code])))
    Target2 = CALCULATE(SUM([Target]),FILTER('target',[Prjt_year]=MAX('year'[year_code])&&[Month]=MAX('month'[mont_code])))

    The final output is shown below:

    If I understand wrong, please correct me in time and provide more details.

    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

1 Reply

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

    Hi, bilalkhokar73 ;

    Through your description and the .pbix of your last post, you  could create two measures as follows:

    Amnt2 = CALCULATE(SUM([Amnt]),FILTER('sales',YEAR([date])=MAX('year'[year_code])&&MONTH([date])=MAX('month'[mont_code])))
    Target2 = CALCULATE(SUM([Target]),FILTER('target',[Prjt_year]=MAX('year'[year_code])&&[Month]=MAX('month'[mont_code])))

    The final output is shown below:

    If I understand wrong, please correct me in time and provide more details.

    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.