The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I have a measure which calculates debt. I need to find an average 12 month of debt. How I could achieve this?
Hello,
-Make sure you have date column in your dataset that represents the debt transactions.
- Create a measure using this:-
12 Month Debt Average =
AVERAGEX(
DATESINPERIOD(
'YourTable'[DateColumn],
MAX('YourTable'[DateColumn]),
-12,
MONTH
),
'YourTable'[DebtAmount]
)
-Replace 'YourTable' with the name of your table and 'DateColumn' with the name of your date column. Also, replace 'DebtAmount' with the name of the column that represents the debt amounts.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Debt amount is in measure. I am calculating debt amount in measure.
User | Count |
---|---|
79 | |
73 | |
39 | |
30 | |
28 |
User | Count |
---|---|
108 | |
99 | |
55 | |
49 | |
46 |