Forum Discussion
Dynamic Text for a Drill Through
Here is a little more detail about what I am trying to do:
The last value I need to include in the title changes depending on the Color Parameter. So, I cannot simply use selectedvalue(Table[Gender])
Since Color Parameter =
{
("Overall", NAMEOF('Enrollment'[Overall]), 0),
("Gender", NAMEOF('Student Bio Demo'[Gender]), 1),
("Race/Ethnicity", NAMEOF('Student Bio Demo'[Ethnicity Race Group]), 2),
("Minority", NAMEOF('Student Bio Demo'[Minority]), 3),
("Residency", NAMEOF('Student Bio Demo'[Residency level]), 4)
I tried
- gmsamborn3 years ago
Super User
Does this help? I think it was just a matter of incorrectly placed parentheses.
Drillthrough Title Piece = IF( 'Color Parameter'[Value] = "Overall", "Overall", IF( 'Color Parameter'[Value] = "Gender", SELECTEDVALUE( 'Student Bio Demo'[Gender] ), IF( 'Color Parameter'[Value] = "Race/Ethnicity", SELECTEDVALUE( 'Student Bio Demo'[Ethnicity Race Group] ), IF( 'Color Parameter'[Value] = "Minority", SELECTEDVALUE( 'Student Bio Demo'[Minority] ), SELECTEDVALUE( 'Student Bio Demo'[Residency level] ) ) ) ) )- SusanRay3 years ago
Helper I
Thank you for the response, gmsamborn .
Unfortunately, that did not work. The error message says "The syntax for 'Value' is incorrect."
- gmsamborn3 years ago
Super User
Hi SusanRay
I was just going by your definition for [Drillthrough Title Piece]. In you definition, you refer to Color Parameter without using quotes (ie. 'table') or square brackets ( ie. [measure] ). I have no way of knowing if that is a measure or a table (or even a column).