<?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 Dynamic Text in Text Box or Card based on slicer selection in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-Text-in-Text-Box-or-Card-based-on-slicer-selection/m-p/3566989#M8446</link>
    <description>&lt;P&gt;I am trying to change the text in a text box or card based on a slicer selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if i select a country "Afghanistan", I want the text box to read "The War in Afghanistan began in 2001". If I select "Ukraine", I want the text to read "Ukraine was attacked in early 2022", and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen similar inquiries with "VAR, RETURN, IF" DAX solutions, but I can't seem to get them to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column name is "Country of origin" and table name is "Orgin/Destination"&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2023 19:59:55 GMT</pubDate>
    <dc:creator>dilledille</dc:creator>
    <dc:date>2023-12-04T19:59:55Z</dc:date>
    <item>
      <title>Dynamic Text in Text Box or Card based on slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-Text-in-Text-Box-or-Card-based-on-slicer-selection/m-p/3566989#M8446</link>
      <description>&lt;P&gt;I am trying to change the text in a text box or card based on a slicer selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if i select a country "Afghanistan", I want the text box to read "The War in Afghanistan began in 2001". If I select "Ukraine", I want the text to read "Ukraine was attacked in early 2022", and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen similar inquiries with "VAR, RETURN, IF" DAX solutions, but I can't seem to get them to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column name is "Country of origin" and table name is "Orgin/Destination"&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 19:59:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-Text-in-Text-Box-or-Card-based-on-slicer-selection/m-p/3566989#M8446</guid>
      <dc:creator>dilledille</dc:creator>
      <dc:date>2023-12-04T19:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Text in Text Box or Card based on slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-Text-in-Text-Box-or-Card-based-on-slicer-selection/m-p/3568726#M8448</link>
      <description>&lt;P&gt;I wouldn't bother nesting sentences in IFs, Switches or variables. If it's text you want to maintain / control, you could either use 'Enter data' and have a Country and Description column, or the same in an Excel file. Then on your slicer you'd have the column Country and on the card visual you'd have the description column.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you already have the descriptions in another table, then assuming that table has a 'country' column (or any key unique key column) you could create a relationship between your country lookup table that you're using for the slicer and the key in the description table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 15:03:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-Text-in-Text-Box-or-Card-based-on-slicer-selection/m-p/3568726#M8448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-05T15:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Text in Text Box or Card based on slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-Text-in-Text-Box-or-Card-based-on-slicer-selection/m-p/3580579#M8467</link>
      <description>&lt;P&gt;You could probably do something along the lines of a measure with:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TextBoxText = 
Lookupvalue(Table[Origin/Destination]),Table[Country of Origin],SELECTEDVALUE(Table[Country of Origin])
)&lt;/LI-CODE&gt;&lt;P&gt;One important note is that this is assuming that each Country of Origin is unique&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 20:40:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-Text-in-Text-Box-or-Card-based-on-slicer-selection/m-p/3580579#M8467</guid>
      <dc:creator>ExcelMonke</dc:creator>
      <dc:date>2023-12-12T20:40:57Z</dc:date>
    </item>
  </channel>
</rss>

