Forum Discussion
KamilRetkiewicz
Helper I
1 year agoConditional measure
Hi Guys, I had a following problem with measure: YourMeasureName = var FCFOperations = CALCULATE(SUM(YTG3_FCF[AmountEXCANDONEOFF]), YTG3_FCF[CATEGORY] = "FCF Operations including Factor...
shafiz_p
Super User
1 year agoHi KamilRetkiewicz Seems like the SELECTEDVALUE function not returning the expected value. See the difference in i of including word marks in red. Check this differences.
If not solved your problem, please share PBIX file or sample data.
Best Regards,
Shahariar Hafiz
KamilRetkiewicz
Helper I
1 year agoHi,
After fix i have sth like this:
maybe it is because i took value from another table? Relationship with mapped table is correct, idk what doesnt work
- shafiz_p1 year ago
Super User
KamilRetkiewicz Try below code:
YourMeasureName2 = IF( SELECTEDVALUE (MAPPING_YTG_3[Name_ACCOUNT]) = "FCF Including Factoring", [YourMeasureName], 1 )Hope this helps!!
If this solved your problem, please accept it as a solution!!
Best Regards,
Shahariar Hafiz