Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Good morning.
I have created a measure with two variables, the output of which is dependent on a selection from another table.
I am completely stuck. can any one help please?
Kind regards
Steve
Solved! Go to Solution.
Try changing IF('DataF' = "Monthly", vActM, vActW) to IF(SELECTEDVALUE('TableName'[ColumnName]) = "Monthly", vActM, vActW). Change 'TableName'[ColumnName] to the actual table and column names.
In addition, that is because your measure expects a single or scalar value. Column 'DataF' is a column and is not a single value. The workaround is to wrap it in a functoin that will return and a single value which doesn't necessarily aggreate like MAX, MIN, SELECTEDVALUE. This functions will return just about the same value on a by row basis but not when it comes to the total. Took me some time too to figure out when I was a novice Power BI user.
Try changing IF('DataF' = "Monthly", vActM, vActW) to IF(SELECTEDVALUE('TableName'[ColumnName]) = "Monthly", vActM, vActW). Change 'TableName'[ColumnName] to the actual table and column names.
spot on - thank you so much