Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

MDX coding

$
0
0

I want to compare the value between the syntax code "userName()" and STRToMember("[xxxx].[Username].&[" + UserName() + "]") in SSAS:s calculation, inside of a calculated member.

Unfortunately, I get error message. How should I write the code to make comparision.


IIF
(    
userName() = STRToMember("[xxxx].[Username].&[" + UserName() + "]"),    
"yes",    
"No"
)




Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>