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
bilalkhokar73
Helper IV
Helper IV

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

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
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:

vyalanwumsft_0-1624350802864.pngvyalanwumsft_1-1624350815262.png

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.

View solution in original post

1 REPLY 1
v-yalanwu-msft
Community Support
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:

vyalanwumsft_0-1624350802864.pngvyalanwumsft_1-1624350815262.png

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.

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.

Top Solution Authors
Top Kudoed Authors