Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
80 | |
53 | |
39 | |
39 |
User | Count |
---|---|
104 | |
85 | |
47 | |
44 | |
43 |