<?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 Column Name in Table Visual Based on Date Slicer Selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Column-Name-in-Table-Visual-Based-on-Date-Slicer/m-p/4373256#M173619</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using a table visual in Power BI, and I want to implement a feature where the column header and data dynamically change based on the user’s selection from a date slicer.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If the user selects "March" from the slicer, the table should display the month name (e.g., "March") as the column header along with associated data (e.g., "Sales Week1", "Sales Week2", etc.).&lt;/LI&gt;&lt;LI&gt;The other columns, like "Revenue Generated," should remain static, showing their corresponding values for the selected period.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Sample Table Design:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;March&lt;/TD&gt;&lt;TD&gt;Revenue Generated&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sales Week1&lt;/TD&gt;&lt;TD&gt;10,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sales Week2&lt;/TD&gt;&lt;TD&gt;15,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sales Week3&lt;/TD&gt;&lt;TD&gt;12,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sales Week4&lt;/TD&gt;&lt;TD&gt;11,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;How can I achieve this using DAX or other Power BI functionalities? Any suggestions or guidance would be highly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SBC&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2025 09:04:08 GMT</pubDate>
    <dc:creator>SBC</dc:creator>
    <dc:date>2025-01-21T09:04:08Z</dc:date>
    <item>
      <title>Dynamic Column Name in Table Visual Based on Date Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Column-Name-in-Table-Visual-Based-on-Date-Slicer/m-p/4373256#M173619</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using a table visual in Power BI, and I want to implement a feature where the column header and data dynamically change based on the user’s selection from a date slicer.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;If the user selects "March" from the slicer, the table should display the month name (e.g., "March") as the column header along with associated data (e.g., "Sales Week1", "Sales Week2", etc.).&lt;/LI&gt;&lt;LI&gt;The other columns, like "Revenue Generated," should remain static, showing their corresponding values for the selected period.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Sample Table Design:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;March&lt;/TD&gt;&lt;TD&gt;Revenue Generated&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sales Week1&lt;/TD&gt;&lt;TD&gt;10,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sales Week2&lt;/TD&gt;&lt;TD&gt;15,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sales Week3&lt;/TD&gt;&lt;TD&gt;12,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sales Week4&lt;/TD&gt;&lt;TD&gt;11,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;How can I achieve this using DAX or other Power BI functionalities? Any suggestions or guidance would be highly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SBC&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 09:04:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Column-Name-in-Table-Visual-Based-on-Date-Slicer/m-p/4373256#M173619</guid>
      <dc:creator>SBC</dc:creator>
      <dc:date>2025-01-21T09:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Column Name in Table Visual Based on Date Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Column-Name-in-Table-Visual-Based-on-Date-Slicer/m-p/4373334#M173622</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="364794" data-lia-user-login="SBC" class="lia-mention lia-mention-user"&gt;SBC&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;The easiest way to achive this kind of scenario is to create a separate measure and use selection of it..&lt;BR /&gt;Below are steps :&lt;BR /&gt;1) Rename the Sales week with space.&lt;BR /&gt;2) Create a basic measure with selected value function.&lt;BR /&gt;3) Drag the measure in card visual and format this...&lt;BR /&gt;4) Group the card visual and Table visual&lt;BR /&gt;Nothing fancy..&lt;BR /&gt;Below screenshots&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There could be a way to achive this by adding a disconected table and write a measure top of it.. But it will add an unnecessary a table into your model.&lt;BR /&gt;Let me know which way you want to like.&lt;BR /&gt;Below is the attached pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;sanalytics&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 09:43:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Column-Name-in-Table-Visual-Based-on-Date-Slicer/m-p/4373334#M173622</guid>
      <dc:creator>sanalytics</dc:creator>
      <dc:date>2025-01-21T09:43:16Z</dc:date>
    </item>
  </channel>
</rss>

