<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using Measure Name as Dynamic Title in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measure-Name-as-Dynamic-Title/m-p/3949329#M153410</link>
    <description>&lt;P&gt;Or use&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/selectedmeasurename-function-dax" target="_blank"&gt;SELECTEDMEASURENAME function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 25 May 2024 12:40:12 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-05-25T12:40:12Z</dc:date>
    <item>
      <title>Using Measure Name as Dynamic Title</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measure-Name-as-Dynamic-Title/m-p/3948819#M153393</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm creating a dynamic tooltip which displays dynamic title based on selection in a given time visual.&lt;BR /&gt;&lt;BR /&gt;The tooltip should display the selected measure title&lt;BR /&gt;&lt;BR /&gt;for column names below works fine&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Title =
IF(ISFILTERED(Tickets[Topic], Tickets[Topic] = SELECTEDVALUE(Tickets[Topic])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;but what ways are there to display measure titles in such way?&lt;BR /&gt;&lt;BR /&gt;I have tried&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure Title =
IF(HASONEVALUE('MeasuresTable'[Measures]),
VALUES('MeasuresTable'[Measures]),
" ")&lt;/LI-CODE&gt;&lt;P&gt;but this requires at least one measure to be filtered in order to work. Other way just shows blank.&lt;BR /&gt;&lt;BR /&gt;Is there any alternatives?&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2024 05:46:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measure-Name-as-Dynamic-Title/m-p/3948819#M153393</guid>
      <dc:creator>Oodi</dc:creator>
      <dc:date>2024-05-25T05:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure Name as Dynamic Title</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measure-Name-as-Dynamic-Title/m-p/3948990#M153394</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="462806" data-lia-user-login="Oodi" class="lia-mention lia-mention-user"&gt;Oodi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can refer to below demo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment  --&gt;&lt;A href="https://1drv.ms/u/s!Avkq2QNvDlkrwUKL1FmgW7eR57a6?e=labDXR" target="_blank"&gt;Demo - Using Measure Name as Dynamic Title.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you~&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2024 08:51:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measure-Name-as-Dynamic-Title/m-p/3948990#M153394</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2024-05-25T08:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure Name as Dynamic Title</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measure-Name-as-Dynamic-Title/m-p/3949329#M153410</link>
      <description>&lt;P&gt;Or use&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/selectedmeasurename-function-dax" target="_blank"&gt;SELECTEDMEASURENAME function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2024 12:40:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measure-Name-as-Dynamic-Title/m-p/3949329#M153410</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-25T12:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure Name as Dynamic Title</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measure-Name-as-Dynamic-Title/m-p/3949993#M153423</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="738384" data-lia-user-login="xifeng_L" class="lia-mention lia-mention-user"&gt;xifeng_L&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Xifeng your solution works in Matrix. When tying to apply it in a line chart with multiple measures in y-axis and Date in x-axis the same continues. When filtering one measure (one line) it works but when all lines are visible it doesn't.&amp;nbsp;&lt;BR /&gt;Also tried below but same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR _Selected =
IF(SELECTEDMEASURENAME() = "Tickets", SELECTEDMEASURE(),
BLANK())

VAR _Selected2 =
IF(SELECTEDMEASURENAME() = "Tickets", "Tickets",
BLANK())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas how to&amp;nbsp;make it work with field parameters? Tried below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Tickets = {
    ("Tickets", NAMEOF('DimMeasures'[Tickets]), 0),
    ("Tickets Cancelled", NAMEOF('DimMeasures'[Tickets cancelled]), 1),
    ("Tickets not on time", NAMEOF('DimMeasures'[Tickets not on time]), 2),
    ("Tickets on time", NAMEOF('DimMeasures'[Tickets on time]), 3)
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when choosing it with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECTEDVALUE(Tickets[Parameter])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Power BI gives the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Couldn't load the data for this visual
MdxScript(Model) (303, 1) Calculation error in measure 'DimMeasures'[Measure Title_]: Column [Parameter] is part of composite key, but not all columns of the composite key are included in the expression or its dependent expression.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 10:28:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measure-Name-as-Dynamic-Title/m-p/3949993#M153423</guid>
      <dc:creator>Oodi</dc:creator>
      <dc:date>2024-05-26T10:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure Name as Dynamic Title</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measure-Name-as-Dynamic-Title/m-p/3950067#M153424</link>
      <description>&lt;P&gt;that is to be expected.&amp;nbsp; All of the "SELECTED"&amp;nbsp; functions only work if there is exactly a single value present.&lt;/P&gt;</description>
      <pubDate>Sun, 26 May 2024 12:46:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measure-Name-as-Dynamic-Title/m-p/3950067#M153424</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-05-26T12:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Measure Name as Dynamic Title</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measure-Name-as-Dynamic-Title/m-p/3954573#M153508</link>
      <description>&lt;P&gt;Keeping the topic open if anyone has insights:&lt;BR /&gt;&lt;BR /&gt;To recap trying to display measure name in a dynamic title with custom report page tooltip in a same way Power Bi displays measure names in a default tooltip but only displaying one measure title (the one that you are hovering on) at a time instead of all like in the below examples.&lt;BR /&gt;&lt;BR /&gt;Example with Measures in Values.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;Example with Parameters in Values:&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Tickets = {
    ("Tickets", NAMEOF('DimMeasures'[Tickets]), 0),
    ("Cancelled Tickets", NAMEOF('DimMeasures'[Cancelled Tickets]), 1),
    ("Delayed Tickets", NAMEOF('DimMeasures'[Delayed Tickets]), 2),
    ("On time Tickets", NAMEOF('DimMeasures'[On time Tickets]), 3)
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 10:03:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Measure-Name-as-Dynamic-Title/m-p/3954573#M153508</guid>
      <dc:creator>Oodi</dc:creator>
      <dc:date>2024-05-28T10:03:56Z</dc:date>
    </item>
  </channel>
</rss>

