Forum Discussion
New Column with Blank value Count
- Anonymous4 years ago
Hi hello_MTC ,
You can update the formula of your calculated column [Counts] as below and check if it can return the correct result... Please find the details in the attachment.
Counts = VAR _count = CALCULATE ( COUNT ( 'CountTable'[Incident_id] ), FILTER ( 'CountTable', 'CountTable'[Incident_id] = EARLIER ( 'CountTable'[Incident_id] ) ) ) RETURN IF ( ISBLANK ( _count ), BLANK (), IF ( _count <= 9, FORMAT ( _count, "General Number" ), "10+" ) )Best Regards
- Anonymous4 years ago
Hi hello_MTC ,
Just update the formula of calculated column [Counts ]as below:
Counts =VAR _count =CALCULATE (COUNT ( 'CountTable'[User_id] ),FILTER ('CountTable','CountTable'[Incident_id] = EARLIER ( 'CountTable'[Incident_id] )))RETURNIF (ISBLANK ( 'CountTable'[User_id] ),0,IF ( _count <= 9, FORMAT ( _count, "General Number" ), "10+" ))Best Regards
Hi hello_MTC ,
You can update the formula of your calculated column [Counts] as below and check if it can return the correct result... Please find the details in the attachment.
Counts =
VAR _count =
CALCULATE (
COUNT ( 'CountTable'[Incident_id] ),
FILTER (
'CountTable',
'CountTable'[Incident_id] = EARLIER ( 'CountTable'[Incident_id] )
)
)
RETURN
IF (
ISBLANK ( _count ),
BLANK (),
IF ( _count <= 9, FORMAT ( _count, "General Number" ), "10+" )
)
Best Regards
This is Perfect, but It is still not fixed. I need blank count if column user_id has balnk cells(Not on incident_id).
- Anonymous4 years agoNot applicable
Hi hello_MTC ,
You can update the formula of calculated column [] as below:
Counts =VAR _count =CALCULATE (COUNT ( 'CountTable'[User_id] ),FILTER ('CountTable','CountTable'[Incident_id] = EARLIER ( 'CountTable'[Incident_id] )))RETURNIF (ISBLANK ( 'CountTable'[User_id] ),BLANK (),IF ( _count <= 9, FORMAT ( _count, "General Number" ), "10+" ))Best Regards
- hello_MTC4 years agoHelper III
Hi, You're awesome. But, I mistakenly mentioned that I need blank if user_id is blank. Actually I need 0 if user_is has balnk cell values.
I am sorry for the inconvinience!
- Anonymous4 years agoNot applicable
Hi hello_MTC ,
Just update the formula of calculated column [Counts ]as below:
Counts =VAR _count =CALCULATE (COUNT ( 'CountTable'[User_id] ),FILTER ('CountTable','CountTable'[Incident_id] = EARLIER ( 'CountTable'[Incident_id] )))RETURNIF (ISBLANK ( 'CountTable'[User_id] ),0,IF ( _count <= 9, FORMAT ( _count, "General Number" ), "10+" ))Best Regards