Forum Discussion
czuniga
5 years agoHelper III
Weighted Average
I have a dataset similar to this: Claim # DateSubmitted Date Paid # Of Days Between Date Submitted & DatePaid OR # Of Days Since Submitted 54321 3/1/2021 3/15/2021 14 54321 3/2/2...
- 5 years ago
Hey czuniga ,
the following measure should fulfil your criteria:
Average if not paid or 30 days = CALCULATE( AVERAGE( myTable[# Of Days Between Date Submitted & DatePaid OR # Of Days Since Submitted] ), FILTER( myTable, myTable[Date Paid] = BLANK() || DATEDIFF( myTable[Date Paid], TODAY(), DAY ) <= 30 ) )If you need any help please let me know.If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍Best regardsDenisBlog: WhatTheFact.bi
selimovd
5 years agoMost Valuable Professional
Hey czuniga ,
the following measure should fulfil your criteria:
Average if not paid or 30 days =
CALCULATE(
AVERAGE( myTable[# Of Days Between Date Submitted & DatePaid OR # Of Days Since Submitted] ),
FILTER(
myTable,
myTable[Date Paid] = BLANK() || DATEDIFF( myTable[Date Paid], TODAY(), DAY ) <= 30
)
)
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
czuniga
5 years agoHelper III
Worked perfectly. Thank you!