Forum Discussion
If formula
Hi I have two measures to calculate the YTD depending on where you are in the world.
US Associates is callaculated using=
6 Replies
- FowmySuper User
Anonymous
Are you looking for something like this?New Measure = IF ( SELECTEDVALUE ( Table[Region] ) = "America" && SELECTEDVALUE ( Table[Title] ) IN { "Associate", "Senior Associate" }, [ASYD Billable Hours], [YTD Billable Hours] )- AnonymousNot applicable
- FowmySuper User
Anonymous
You wanted to check if the the current selection or region and title and then execute the relevant measures I thought. Do you have slicers for them ?
- AnonymousNot applicable
Im' writing it out
If YTD = IF('WFE"[Current Region Name]= "America" && 'WFEI'm getting an error I'm not sure what should go before the table & column
- v-luwang-msftCommunity Support
Hi Anonymous ,
When you create a measure ,you should try like below:
If YTD = IF( selectedvalue('WFE"[Current Region Name])= "America" ,successful result,error result)
or
If YTD = IF( max('WFE"[Current Region Name])= "America" ,successful result,error result)
And if questions still not solved ,could you pls share your pbix file ?
Best Regards
Lucien
- v-luwang-msftCommunity Support
Hi Anonymous ,
Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.Best Regards
Lucien