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.
Dear all,
I know there are same topics posted, but I'm still confusing. Please help.
I'm trying to write a formula that calculates the average of the rolling 12-month date difference.
The date difference is calculated as below:
@Anonymous
First, add a calculated column to your table to calculate the Date Difference as follows
Create a relationship between the Dates[Date] and Time to NC priority determination 12m'[NC Date Opened]
Create the following measure:
Avg Rolling 12 Months =
CALCULATE(
AVERAGE( 'Time to NC priority determination 12m'[datediff] ),
DATESINPERIOD( 'Dates'[Date] , MAX( 'Dates'[Date] ) , -12 , MONTH )
)
Result
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi @Fowmy, I did what you mentioned above, but it still returns blank.
I don't know why that happened, my Date Table has a larger range than NC Date Opened and NC Initial Priority On (There are some duplicates in NC Date Opened and NC Initial Priority On). I'm not sure if this is the reason of return blank.
Total Cumulative Customer Cost Mobile Period =
Total Customer Cost Accumulated in the period between the last 12 months, including current month (e.g. Current month July, Calculation made since July and August of last year)
CALCULATE(
[Total to be calculated],
DATESINPERIOD(
Dates[Date], //name of your date table and date column
LASTDATE(Dates[Date]),
-12,
MONTH
)
)
Hi @Syndicate_Admin, I have tried the code you mentioned. But I don't know why it returns me blank
@Anonymous First piece of advice, don't use TI functions. 2nd piece of advice:
Rolling Months - Microsoft Power BI Community
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
95 | |
94 | |
80 | |
71 | |
64 |
User | Count |
---|---|
120 | |
105 | |
99 | |
81 | |
72 |