Forum Discussion
Sam01
7 years agoFrequent Visitor
Matrix returning rows with no data once text and numeric values are concatnated
Hello community, I have matrix that has measure duration in HH:MM:SS format , once I add this measure it returns all rows dimension. On below screenshot row A shouls not be displayed. If i remove...
- Anonymous7 years ago
Sam01 -
You can use an IF statement - something like this, which checks to see whether Call Duration is blank. If it's blank, thn this measure will also be blank:
Call Duration (HH:MM:SS) = IF(ISBLANK([Call Duration]),BLANK(), VAR hours = ROUNDDOWN ( [Call Duration] / 3600, 0 ) VAR minutes = ROUNDDOWN ( MOD ( [Call Duration], 3600 ) / 60, 0 ) VAR seconds = INT ( MOD ( [Call Duration], 60 ) ) RETURN FORMAT(hours,"00") & ":" & FORMAT(minutes, "00") & ":" & FORMAT(seconds, "00") )
Anonymous
7 years agoNot applicable
Sam01 -
You can use an IF statement - something like this, which checks to see whether Call Duration is blank. If it's blank, thn this measure will also be blank:
Call Duration (HH:MM:SS) = IF(ISBLANK([Call Duration]),BLANK(), VAR hours = ROUNDDOWN ( [Call Duration] / 3600, 0 ) VAR minutes = ROUNDDOWN ( MOD ( [Call Duration], 3600 ) / 60, 0 ) VAR seconds = INT ( MOD ( [Call Duration], 60 ) ) RETURN FORMAT(hours,"00") & ":" & FORMAT(minutes, "00") & ":" & FORMAT(seconds, "00") )
- Sam017 years agoFrequent Visitor
Anonymous there are no blank values on this Call duration columns. this measure is returning all team member dimemsion regardless if it has data or not.
- Anonymous7 years agoNot applicable
Sam01 - I think you want this measure to be blank if call duration is blank, correct?
- Sam017 years agoFrequent Visitor
Yes, and I would also expect that row would not appear. If I remove my measure with formatting, charts is displaying fine. So I am thinking this measure is causing some iisues