Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Good Afternoon
Im trying to calculate Budget figure year to date, the budgets figures are in a different table to sales. The Budget table has 3 columns for date- year, ,month, week, whereas the date Value is a complete date e.g. day, month, year
Could anyone help, please?
thanks
Ire_2022
Solved! Go to Solution.
@Ire_2022 , Using week and year create a date and use that to join to common date table
Date from week =
var _year = date([Year],1,1)
var _wyear = _year +-1*WEEKDAY(_year ,2)+1
return
_year + [Week]*7
Join this date with the date of the date table, also join the date table with the sales table. IF needed split the data into days
Hi @Ire_2022,
Did the above suggestion help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
@Ire_2022 , Using week and year create a date and use that to join to common date table
Date from week =
var _year = date([Year],1,1)
var _wyear = _year +-1*WEEKDAY(_year ,2)+1
return
_year + [Week]*7
Join this date with the date of the date table, also join the date table with the sales table. IF needed split the data into days
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 68 | |
| 31 | |
| 27 | |
| 24 |