Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
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/2021 | 3/16/2021 | 14 |
| 54321 | 3/3/2021 | 3/17/2021 | 14 |
| 54321 | 3/4/2021 | 3/18/2021 | 14 |
| 54321 | 3/5/2021 | 3/19/2021 | 14 |
| 54321 | 3/6/2021 | 3/20/2021 | 14 |
| 54321 | 3/7/2021 | 3/21/2021 | 14 |
| 54321 | 3/8/2021 | 3/22/2021 | 14 |
| 54321 | 3/9/2021 | 3/23/2021 | 14 |
| 54321 | 3/10/2021 | 3/24/2021 | 14 |
| 54321 | 3/11/2021 | 3/25/2021 | 14 |
| 54321 | 3/12/2021 | 3/26/2021 | 14 |
| 54321 | 3/13/2021 | 3/27/2021 | 14 |
| 54321 | 3/14/2021 | 3/28/2021 | 14 |
| 54321 | 3/15/2021 | 3/29/2021 | 14 |
| 54321 | 3/16/2021 | 13 | |
| 54321 | 3/17/2021 | 12 | |
| 54321 | 3/18/2021 | 11 | |
| 54321 | 3/19/2021 | 10 | |
| 54321 | 3/20/2021 | 9 | |
| 54321 | 3/21/2021 | 8 | |
| 54321 | 3/22/2021 | 7 | |
| 54321 | 3/23/2021 | 6 | |
| 54321 | 3/24/2021 | 5 | |
| 54321 | 3/25/2021 | 4 |
I need to get the average of the "# Of Days Between Date Submitted & DatePaid OR # Of Days Since Submitted" that includes all of the rows with no pay date, but of the rows that do have a pay date, only those that have a pay date within the last 30 days.
Solved! Go to Solution.
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
)
)
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 I wanted to view this same information on a rolling basis, how could I do that?
I have this so far, but something is off:
Worked perfectly. Thank you!
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 38 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 66 | |
| 30 | |
| 26 | |
| 25 |