Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
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'm trying to show average days it took for a complaint to be received till the case was closed by program. I'm unable to upload PBIX data. Here is an example of what it looks like. Some of the data will have blanks. Is there a way to exclude the blanks in the average calculation? I would like to show the end results in a bar graph.
| Program | Complaint Received Date | Case Closed Date | Days to closure |
| SNAP | 6/17/2025 | ||
| AF | 5/27/2025 | 7/23/2025 | 68 |
| MA | 7/01/2025 | 7/24/2025 | 23 |
| MA | 7/02/2025 | 7/24/2025 | 22 |
| SNAP | 6/04/2025 | 7/23/2025 | 49 |
Solved! Go to Solution.
Hi,
Blanks are by default excluded in an average calcualtion. If Days to Close is already a column in your table, then write this measure
Avg = average(Data[Days to close])
Hope this helps.
Hi,
Blanks are by default excluded in an average calcualtion. If Days to Close is already a column in your table, then write this measure
Avg = average(Data[Days to close])
Hope this helps.
@Ashish_Mathur Is there a way to get the average based on the program? It looks like it has the same average for each program.
Hi,
Looks like there is some problem with the relationship. Share the download link of the PBI file and show the problem there very clearly.
I was able to fix the relationship.
Thank you again.
Hello,
You can consider the following DAX
CALCULATE(
AVERAGE(Table[Days to Closure]),
Table[Days to Closure] <>"")
Proud to be a Super User! | |
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 |
|---|---|
| 44 | |
| 38 | |
| 34 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 65 | |
| 64 | |
| 31 | |
| 26 | |
| 25 |