dynamic title
4 TopicsError When Referencing Field Parameter in a Measure
I have a measure that dynamically returns a chart title based on slicer selection. Now I want to add to the measure a field parameter that will determine the chart title based on the slicer selections AND the field parameter selection. However, I get an error when trying to do so. Is it even possible to implement what I'm trying to achieve? Appreciate any tips please bhanu_gautam lbendlin š Note: the field parameter is referencing measures only and for each of the measures referenced, they too are referencing other measures. Hope that makes sense. Dynamic Chart Title = VAR FieldParameter = SELECTEDVALUE('Ethnicity Filter'[Ethnicity Filter]) VAR Slicer1 = SELECTEDVALUE('Gender and Ethnic Pay'[Business Unit 1]) VAR Slicer2 = SELECTEDVALUE('Gender and Ethnic Pay'[Business Unit 2]) VAR ChartTitle = IF( ISBLANK(FieldParameter), "ALL ETHNICITIES", FieldParameter & " REPRESENTATION" ) RETURN SWITCH( TRUE(), ISBLANK(Slicer1) && ISBLANK(Slicer2), "MPI - " & ChartTitle & " by TENURE", NOT ISBLANK(Slicer1) && ISBLANK(Slicer2), UPPER(Slicer1) & " - " & ChartTitle & " by TENURE", NOT ISBLANK(Slicer1) && NOT ISBLANK(Slicer2), UPPER(Slicer2) & " - " & ChartTitle & " by TENURE" ) //Field Parameter Ethnicity Filter = { ("European", NAMEOF('Measures - General'[European Rate]), 0), ("Other Ethnicity", NAMEOF('Measures - General'[Other Rate]), 1), ("Asian", NAMEOF('Measures - General'[Asian Rate]), 2), ("MÄori", NAMEOF('Measures - General'[MÄori Rate]), 3), ("Pacific Peoples", NAMEOF('Measures - General'[Pacific Rate]), 4), ("MELAA", NAMEOF('Measures - General'[MELAA Rate]), 5) }799Views0likes2CommentsUsing Measure Name as Dynamic Title
Hello, I'm creating a dynamic tooltip which displays dynamic title based on selection in a given time visual. The tooltip should display the selected measure title for column names below works fine Title = IF(ISFILTERED(Tickets[Topic], Tickets[Topic] = SELECTEDVALUE(Tickets[Topic]) but what ways are there to display measure titles in such way? I have tried Measure Title = IF(HASONEVALUE('MeasuresTable'[Measures]), VALUES('MeasuresTable'[Measures]), " ") but this requires at least one measure to be filtered in order to work. Other way just shows blank. Is there any alternatives?2.7KViews0likes5CommentsDynamic title for hierarchy slicer: How to always show lowest selected level
Hi there, I have a report that has KPIs structured into two columns, who are hierarchical - "Task" and "CoreTask". Each CoreTask has at least one, some multiple tasks. I solved the selection with a hierarchy slicer: CoreTask as Level 1 -> Task as Level 2 What I would like to do is have a dynamic header that always shows the lowest level selection - if a CoreTask and no Task is selected show CoreTask title; if a Task to a CoreTask is selected, only show Task title. The selection setting is single-selection. If a CoreTask is selected with no Task selected, it automatically selects all Tasks (could this be an issue?) I have tried with the following DAX but I cannot get the title, except the prefix "active: " to show up. I would really appreciate if you could help me out here. SlicerSelectionTitle = IF( ISFILTERED('Finances'[Task]), "active: " & SELECTEDVALUE('Finances'[Task]), IF( ISFILTERED('Finances'[CoreTask]), "active: " & SELECTEDVALUE('Finances'[CoreTask]) ) ) Dynamic Header based on Hierarchical Slicer Selection in Power BI | BI Consulting Pro | Power BI |4K (youtube.com) <- my resource for writing the DAX aboveSolved930Views0likes2CommentsHow to reference a COLUMN used as slicer in order to use it inside a MEASURE
Hello Community, Is there a way to reference THE COLUMN NAME of the slicer (in the form "Table"[Column]) inside of a measure ? The reason I need this is because I want to have a different TITLE for the slicer visual, which will differ, depending on the column selected. And in order to get that, I need to use a FORMULA (measure) in the TITLE section which handles the title output depending on the column. But I can't reference it in any way. Sadly there is no ISSELECTED for columns, and I need to find an alternative. And it also has to work without a selected value necessarily (so SELECTEDVALUE("Table"[Column]) command is also no good). The title needs to be different then the column selected, because all these slicer columns have an abstract naming (eg name_1, name_2 ), used to avoid breaking the model upon online refreshing. The actual names are created by users and can be anything really and may be subject to change. This will be outputed by the dynamic title created from the measure, but this is the easier part. So in other words I am looking for something like : Measure Title = IF(...SELECTEDCOLUMNOFSLICER(Table[name_1]) = TRUE ... ,"value1", IF(...SELECTEDCOLUMNOFSLICER(Table[name_2]) = TRUE ... ,"value2") ) Thank you for your time on this, Kind regards,Solved3.2KViews0likes4Comments