Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi there,
I am struggling writing a DAX code for following calculation. I have the table below (simplified) and I want to calculate the share of customer complaints with a processing time >42 days. The column "processing time" is calculated from "date opened" and "date closed"
| Customer Complaint Claim ID | Date Opened | Date Closed | Processing Time |
| 1 | 23.08.2021 | 30.11.2021 | 99 |
| 2 | 29.09.2022 | 30.09.2022 | 1 |
| 3 | 07.06.2022 | 11.07.2022 | 34 |
| 4 | ... | --- | --- |
| 5 | ... | --- | --- |
| 6 | ... | --- | --- |
| 7 | ... | --- | --- |
Thanks for your support
Solved! Go to Solution.
@uie79957 , if you do not have Processing Time
a new column
Processing Time= datediff([OpenDate], [Close Date], Day )+1
A new measure
divide(countrows(filter(table, Table[Processing Time] >42)), countrows(table))
You could create a measure like
Percent overdue =
VAR TotalComplaints =
COUNTROWS ( 'Table' )
VAR ComplaintsOver42 =
CALCULATE ( COUNTROWS ( 'Table' ), 'Table'[Processing time] > 42 )
RETURN
DIVIDE ( ComplaintsOver42, TotalComplaints )
@uie79957 , if you do not have Processing Time
a new column
Processing Time= datediff([OpenDate], [Close Date], Day )+1
A new measure
divide(countrows(filter(table, Table[Processing Time] >42)), countrows(table))
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 53 | |
| 42 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 124 | |
| 105 | |
| 44 | |
| 32 | |
| 24 |