Forum Discussion
KamilRetkiewicz
1 year agoHelper I
Conditional measure
Hi Guys, I had a following problem with measure: YourMeasureName = var FCFOperations = CALCULATE(SUM(YTG3_FCF[AmountEXCANDONEOFF]), YTG3_FCF[CATEGORY] = "FCF Operations including Facto...
shafiz_p
1 year agoSuper User
Hi 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
1 year agoHelper I
Hi,
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 agoSuper 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- KamilRetkiewicz1 year agoHelper I
unfortunately it didn't work:/