Forum Discussion

sdhn's avatar
sdhn
Responsive Resident
3 years ago

Add one in count

Hello All.
 
I have source & source 1 files.
Following code bring the counts of source files with extra one count.
 
Like 
Source Open  = 100  but actual counts 99
Source SCOM =  26  but actual counts 25
 
  For Source 1  , it is bringing corrcet counts
 
Source 1 A = 20
Source 1 P = 1
 
Count = CALCULATE(COUNT(Source[Incident ID]) + COUNT('Source 1'[Parent PublicID]))
 
 
 If I add -1 as below
it fixes Source  but reduces Source 1 by 1.
 
Count = CALCULATE(COUNT(Source[Incident ID]) + COUNT('Source 1'[Parent PublicID])-1)
 
I think,  I need to add -1 with first part of code (source) , needs your help.  Thanks 

2 Replies