Distinct portfolio's
if AVG([Is Default])=0 THEN
(IF AVG([Is Default]) = 0 THEN COUNTD([PortfolioId]) ELSE (COUNTD([Is Default])-1) END)
ELSE 0 END
Expected output added in the workbook Title please refer.
I need to get output without using filter is default column. other columns it will change values based on filter that shouldn't be.
is there any workaround to fix my calculation.
I have attached sample workbook.
5 respostas
Well, the average of your [Is Default] field is never zero, so you'll always return the distinct count of IDs in the partition. If you want to count the number of IDs where the [Is Default] is zero, then you'd need to put that filter condition inside your count, i.e.
COUNTD(IF [Is Default] = 0 THEN [Portfolioid] END)