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

FutureTargetVSSales

Dear All,

I have one table Items_M where itemid,subclass is there

I have one table sales table where Transaction data there

I created one target table TGT_Prj which will have mont, year , I haev standard date table also

My YTD mesaures is =calculate(totalsum,dateadd(datesytd(dates[date]),-1,year))

Target and here target will be future month target also,

 

so I want  to see sales vs future target/Target , if suppose i see august report then only target will shwo , sales will come zero like that

 

I have target item id wise month wise , on item id can repeat in other months

 

 

What I did I created one column in power bi m_tgt=date(TGT_Prj[year],TGT_Prj[month],01)) then MTDTGT=totalmtd(sum(m_tgt[target],TGT_Prj[m_tgt]) but givgin me i am creating a report

with month from TGT_Prj table in column and sales from sales table sum(sales) givign me wrong results.

 

I want  to see sales vs future target/Target , if suppose i see august report then only target will shwo , sales will come zero like that

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@bilalkhokar73 , Not able to get what is the exact issue. If you joined the date table with both tables then you should be able to get data for sales and Target for all months using date table

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

View solution in original post

3 REPLIES 3
v-xulin-mstf
Community Support
Community Support

Hi @bilalkhokar73,

 

I can't see the screenshot of your issue, could you re-upload it?

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

amitchandak
Super User
Super User

@bilalkhokar73 , Not able to get what is the exact issue. If you joined the date table with both tables then you should be able to get data for sales and Target for all months using date table

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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.