Forum Discussion

ninashand's avatar
ninashand
Frequent Visitor
5 years ago
Solved

Measure not providing Total

Hi, i'm trying to distinguish new vs retained sales.

My first two measures are working as expected. 

 

However for my final two measures receiving i'm received no total amount at all for New Sales

then receiving an incorrect total amount for Retained Sales. Help! I'm not understanding why.  

 

Past Years Total = CALCULATE(sum('Opportunity Product'[TotalPrice]),Events[Past Event] <> "N")
Current Event Total = CALCULATE(sum('Opportunity Product'[TotalPrice]),Events[Past Event] = "N")
 
New Sales = if([Past Years Total] = 0, [Current Event Total])
Retained Sales = [Current Event Total] - [New Sales]
 

3 Replies