Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
I have Budget table, date table , sales table ,company table
Company table just got records UK and US and it is mapped with Budget table and Sales table.
I want to show Weekly budget. Can you please help me to calculate it. On page If i filter company, then it should show only filtered company buget per week. There will be Month and year filter.
Currently I am calculating
TotalBudgets=CALCULATE(SUM('Budget[mONTHLYbUDGET]),TREATAS(VALUES(Dates[MonthYear]),'Budget'[MonthYear]))
I am calculating BudgetPerDay =
var BudgetperMonth =CALCULATE([TOTAL BUDGET],FILTER(Dates,Month(dates[Date])=Month(Max(Dates[Date]))),FILTERS(Company[Company]))
RETURN
9ISFILTERED(Dates[Date]),
DIVIDE(BudgetPerDay,[WorkingDaysinMonth],0),[TotalBudget])
Budget table structure and value example.
| Company | Product | MonthYear | Monthly Budget | PerDay Budget | Working days | Date |
| UK | A1 | 01 2021 | 5000 | 227.27 | 22 | 01/01/2021 |
| US | A1 | 01 2021 | 7000 | 318.18 | 22 | 01/01/2021 |
| UK | A2 | 01 2021 | 4000 | 181.81 | 22 | 01/01/2021 |
| UK | A3 | 02 2021 | 7000 | 318.18 | 20 | 01/02/2021 |
| US | A3 | 02 2021 | 7000 | 318.18 | 20 | 01/02/2021 |
| UK | A4 | 02 2021 | 8000 | 400 | 20 | 01/02/2021 |
Solved! Go to Solution.
@mb0307 , PLease find the file where I have split monthly budget into daily, from there you can build weekly
One is measure way, another one is table way
@mb0307 , PLease find the file where I have split monthly budget into daily, from there you can build weekly
One is measure way, another one is table way
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 64 | |
| 39 | |
| 33 | |
| 23 |