Forum Discussion
vjnvinod
7 years agoImpactful Individual
Measure error help
Hi Team, I am getting some error with my measure below in the screenshot, let me know if there is way to fix this
- 7 years ago
Hi vjnvinod ,
Does that meet your requirement?
Cumulative = SWITCH ( TRUE (), SELECTEDVALUE ( 'Account Listing'[Quarter] ) = "Q1" && SELECTEDVALUE ( 'Account Listing'[Year] ) = "FY18", [Q1_GteRevenue], SELECTEDVALUE ( 'Account Listing'[Quarter] ) = "Q2" && SELECTEDVALUE ( 'Account Listing'[Year] ) = "FY18", [Q2_GteRevenue] - [Q1_GteRevenue], SELECTEDVALUE ( 'Account Listing'[Quarter] ) = "Q3" && SELECTEDVALUE ( 'Account Listing'[Year] ) = "FY18", [Q3_GteRevenue] - [Q2_GteRevenue], [Gterrevenue] )
parry2k
7 years agoSuper User
vjnvinod
7 years agoImpactful Individual
also,
below is how my current measure , i need to add filter for Year into this measure
that means when i select my slicer for FY18 and Q1, it shows me only FY18 Q1 result and similarly for FY19 as well
currently the below measure is adding the value of Q1 of FY18 and FY19 (not filtering out correctly)
Cumulative =
switch(
true(),
SELECTEDVALUE('Account Listing'[Quarter])="Q1",[Q1_GteRevenue],
SELECTEDVALUE('Account Listing'[Quarter])="Q2",[Q2_GteRevenue]-[Q1_GteRevenue],
SELECTEDVALUE('Account Listing'[Quarter])="Q3",[Q3_GteRevenue]-[Q2_GteRevenue],
[Gterrevenue]
)
- v-frfei-msft7 years agoCommunity Support
Hi vjnvinod ,
Does that meet your requirement?
Cumulative = SWITCH ( TRUE (), SELECTEDVALUE ( 'Account Listing'[Quarter] ) = "Q1" && SELECTEDVALUE ( 'Account Listing'[Year] ) = "FY18", [Q1_GteRevenue], SELECTEDVALUE ( 'Account Listing'[Quarter] ) = "Q2" && SELECTEDVALUE ( 'Account Listing'[Year] ) = "FY18", [Q2_GteRevenue] - [Q1_GteRevenue], SELECTEDVALUE ( 'Account Listing'[Quarter] ) = "Q3" && SELECTEDVALUE ( 'Account Listing'[Year] ) = "FY18", [Q3_GteRevenue] - [Q2_GteRevenue], [Gterrevenue] )