Sign In | Feedback | Donate | Search
Katie and Emil Logo
Vote Yes! I like it! [+0]  |  Vote no! Dislike? [-0]
Author: by Emil Glownia

Below is code that I developed a few years back that gets handy from time to time. It allows me to change dimension attribute dynamically in SSRS and also helps me to convenience certain people that says it is impossible ;)

I'm not going to describe in details but hopefully it will help some of you; the way it is now:

 

="WITH " &
" member [Measures].[MeasureName] as " &
" " & Parameters!MeasureName.Value &
" member [Measures].[DimensionAttribute1] as " &
" " & Parameters!DimensionAttribute1.Value & ".currentMember.name " &
" member [Measures].[DimensionAttribute1_1] as " &
" " & Parameters!DimensionAttribute1_1.Value & ".currentMember.name " &
" " &
"SELECT " &
" NON EMPTY " &
" { " &
"[Measures].[MeasureName]" &
",[Measures].[DimensionAttribute1]"&
",[Measures].[DimensionAttribute1_1]" &
"} ON COLUMNS " &
" ,NON EMPTY " &
" { " & Parameters!DimensionAttribute1.Value & ".CHILDREN" &
" * " & Parameters!DimensionAttribute1_1.Value & ".CHILDREN" &

" From CubeName"

Hope that helps

Emil

Upsss... Something went wrong and Google Ads on our website did not display.

Google ads sponsor FREE content on our website and without them it would not exist.

How to fix the problem?
  1. Check if the Google Search display any ads by searching the term Business Intelligence
    • If ads don't display, try different search terms and if there no ads then there might be a problem with your browser. If you made changes to your browser behaviour then undoing them will help.
    • If ads display then, refresh our page one more time, if the problem is still there than please contact us.
  2. Become 'No Ads Learner' Member or if you are already one Sign In.
Close
Take care
Katie & Emil
Well done! It seems Google Ads display properly now on our website.

Access our website's FREE content for FREE!