Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Dax formular to replace Blank in complaint report to "Still being processed"

Hello Community 

I'm currently working on a complaint report and I'm having problems with a DAX measure where I'm calculating the average time (in days) between a complaint entering our system and closing of the complaint. Currently, when there is no closing date for a complaint my measure shows a BLANK. Instead of showing a BLANK for the measure, I would like it to show "in-process" when the complaint hasn't been closed. A picture of my measure and dataset is shown below:

 
 
dddd.PNG
 
 

for reference: Beschwerdevorgänge=complaint process 

                      aufnahme= when the ticket was taken by our service team 

                      schlißung= when the ticket was closed

 

Any help would be greatly appreciated.

Stay safe and healthy 🙂

 
 

 

 

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,
In this case you might use calculated column instead of measure?

Duration = IF(ISBLANK('Table'[EndDate]),"Still processing",DATEDIFF('Table'[StartDate],'Table'[EndDate],DAY)&"")



duration status.PNG

 

Note 1: i added "" at the end because only one type of data must be in one column. Either it is text, numeric, date.. can't have both numeric and text values in one column.
Note 2: there is one issue in you formula, second variable doesn't do anything in filter part. It just mentions EndDate, but no conditional statement.

var aufgenomenne = CALCULATE(COUNTROWS('Table'),FILTER('Table',ISBLANK('Table'[EndDate])=TRUE()))
This is example how to get number of rows where end date is blank.
 
Hope some of this info will be helpful.
 
Regards,
Nemanja Andic

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Thank you so much @nandic it worked out perfectly!! Great advice and very appreciated 

nandic
Super User
Super User

Hi @Anonymous , there is a third parameter in Divide function.
Divide(sumaufnahme, aufgenomenne, "Still processing").
Is this final goal?

Regards,
Nemanja Andic

Anonymous
Not applicable

Hi Nandic, thanks so much for your answer but its still giving me a blank when there is no closing date for the complaint. My final goal is for the measure to give me the result " still processing " when there is no closing date for a complaint. Cause the divide function at the end divides a figure by 0 which gives us the blank. So most probably there is an error in the var sumaufnahme cause its not differentiating between the closing dates where there is data and where there is none.Thanks again for the help:)  

Hi @Anonymous ,
In this case you might use calculated column instead of measure?

Duration = IF(ISBLANK('Table'[EndDate]),"Still processing",DATEDIFF('Table'[StartDate],'Table'[EndDate],DAY)&"")



duration status.PNG

 

Note 1: i added "" at the end because only one type of data must be in one column. Either it is text, numeric, date.. can't have both numeric and text values in one column.
Note 2: there is one issue in you formula, second variable doesn't do anything in filter part. It just mentions EndDate, but no conditional statement.

var aufgenomenne = CALCULATE(COUNTROWS('Table'),FILTER('Table',ISBLANK('Table'[EndDate])=TRUE()))
This is example how to get number of rows where end date is blank.
 
Hope some of this info will be helpful.
 
Regards,
Nemanja Andic

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.