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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

YTD YTG in one column from different sources

Dear all, I am trying to collate both YTD (actualized sales) & YTG (forecast) in power BI to show as a bar chart to show total end game for the year.

 

Basically if date is less than this month (e.g. today = 6th Dec, YTD (from actual sales source) would be till 30th Nov 2019) If not take forecast. The data source for actual sales & forecast resides separately but already has a relationship (common column linking up SKU, customer & date of sales)

 

Can anyone one advise on the fomula I should use?

 

Appreciate your help in advance!

 

 

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi crazyshoots, 

You could refer to my sample to see whether it work or not.

Best Regards,
Zoe Zhi

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

3 REPLIES 3
dax
Community Support
Community Support

Hi crazyshoots, 

You could refer to my sample to see whether it work or not(YTD and measure 2)

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @dax, for the first graph I'd be expecting to see only one bar instead of clusters..

Example today is 9th Dec 2019, the last complete month data = Nov 2019.

Hence the data from Jan - Nov 2019 would be actuals, while the last bar of the year for Dec 2019 would be forecast.

 

Kindly assist?

dax
Community Support
Community Support

Hi crazyshoots, 

You could refer to my sample to see whether it work or not.

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.