Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
i have a very simple data-set but I am struggling extremly on how to tackle it.
I would like to calculate various measures but I am extremely struggling with all of them as the dataset is basically a summary and not a raw-data set with actual monthly values.
SampleData:
ID | ImplementationDate | MonthlySavings | MonthsSinceImplementation |
1 | 15-Aug-22 | 10 | 6 |
2 | 20-Oct-22 | 15 | 4 |
3 | 12-Dec-22 | 5 | 2 |
I linked my dataset to a Date-Table.
And calculated: NewSavingsByDate=CALCULATE(SUM(Data[MonthlySavings]),USERELATIONSHIP('Calendar'[Date],Data[ImplementationDate]))
I also added a column: MonthsSinceImplementation = DATEDIFF(Data[ImplementationDate],TODAY(),MONTH)
With this I wanted to calculate the Total Savings = CALCULATE(SUM([MonthlySavings]*SUM([MonthsSinceImplementation].
This works per row, but not for the full data, as it then gives me "(10+15+5)*(6+4+2) = 360"
I tried with "ALLEXCEPT" filter on ID but this didn't change anything on the result.
Further Required Calculations:
Running Total Savings should look like this:
ID | Aug-22 | Sep-22 | Oct-22 | Nov-22 | Dec-22 | Jan-23 | Feb-23 | TOTAL |
1 | 0 | 10 | 10 | 10 | 10 | 10 | 10 | 60 |
2 | 0 | 0 | 0 | 15 | 15 | 15 | 15 | 60 |
3 | 0 | 0 | 0 | 0 | 0 | 5 | 5 | 10 |
TOTAL | 0 | 10 | 10 | 25 | 25 | 30 | 30 | 130 |
Running accumulated Savings should look like this
ID | Aug-22 | Sep-22 | Oct-22 | Nov-22 | Dec-22 | Jan-23 | Feb-23 | TOTAL |
1 | 0 | 10 | 20 | 30 | 40 | 50 | 60 | 60 |
2 | 0 | 0 | 0 | 15 | 30 | 45 | 60 | 60 |
3 | 0 | 0 | 0 | 0 | 0 | 5 | 10 | 10 |
TOTAL | 0 | 10 | 20 | 45 | 70 | 100 | 130 | 130 |
I hope someone could lead me to the right direction...
Thanks in advance!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
17 | |
10 | |
10 | |
8 | |
6 |
User | Count |
---|---|
18 | |
16 | |
15 | |
12 | |
10 |