Forum Discussion
Anonymous
2 years agoNot applicable
Measure to only be applied for a specific row
I have written a measure and of course by default the measure will calculate based on the row context. Is there any way to basically make the measure only calculate for a specific row and then return...
- Anonymous2 years ago
Anonymous Try this .
ROS # £M Web = IF ( SELECTEDVALUE('Campaign Overview'[Type]) = "IN STORE", 0, ROUND ( DIVIDE ( SUM('Campaign Overview'[orders]), SUM('Campaign Overview'[salesPerMillion]) ), 2 ) )
Idrissshatila
Super User
2 years agoHEllo Anonymous ,
try this
ROS # £M Web =
ROUND(
DIVIDE (
calculate(SUM('Campaign Overview'[orders]), branch_type = "ONLINE"),
Calculate(SUM('Campaign Overview'[salesPerMillion]), branch_type = "ONLINE"),
0
0
)
,2
)
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Follow me on Linkedin
Vote for my Community Mobile App Idea 💡
Anonymous
2 years agoNot applicable
that returns 0.55 for both online and in store
because the code will apply the same for the instore reason why it cant be added within the code because the row context will still override it