I have to create a measure which will be the sum of another measure. But in my output, I'm getting the count of the rows
Below are the MDX queries used
Distinctdealer = Distinctcount(dealer])
CREATE MEMBER CURRENTCUBE.[Measures].[Helper]
AS IIF([Measures].[Netsales]<=0,NULL,[Measures].[Distinctdealer]);
CREATE MEMBER CURRENTCUBE.[Measures].[Totalcount]
AS SUM([Measures].[Helper]);
Attached images show the result of each measure. The expected output for the Totalcount(Measure) should be 2. But couldn't achieve it. Could anyone please help me with this?