Forum Discussion
marsclone
Helper IV
5 years agoFrom Power Bi to Power Pivot
Hello,
I want to use this formula in Power Pivot 2016. Is that possible?
Thank you in advance! Kind regards Marcel
ScopeCurrentLevel =
var level4 = if(ISINSCOPE(Financial_Statement_Layouts[Level 4]),4)
var level3 = if(ISINSCOPE(Financial_Statement_Layouts[Level 3]),3)
var level2 = if(ISINSCOPE(Financial_Statement_Layouts[Level 2]),2)
var level1 = if(ISINSCOPE(Financial_Statement_Layouts[Level 1]),1)
return COALESCE(level4,level3,level2, level1 )
4 Replies
- edhans
Community Champion
No. ISINSCOPE is relatively new, and Power Pivot hasn't had a new function since TREATAS was added in 2016 I think.
You'll have to use the older method of a combination of HASONEVALUE(), HASONEFILTER(), and/or ISFILTERED()
They will accomplish the same thing, but as you can see in Power BI, ISINSCOPE is much easier to use. - Fowmy
Super User