<?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: Need help in storing previously selected values from Slicers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-storing-previously-selected-values-from-Slicers/m-p/3579738#M138055</link>
    <description>&lt;P&gt;Here's a step-by-step guide:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Slicer Fields:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Make sure you have the slicer fields (Month, A, B, C) in your dataset.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create a Calculated Column for the Calculation:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;In the table where you have your data, create a new calculated column. Let's call it "Calculation."&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Use the following DAX formula for the calculated column:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Calculation = IF(ISFILTERED('Table'[Month]), 'Table'[A] * 'Table'[B] * 'Table'[C], BLANK())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;This formula checks if the 'Month' slicer is filtered. If it is, it calculates the result based on the selected A, B, and C values. If not, it returns BLANK().&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create a Table Visual:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a table visual with 'Month' and the newly created 'Calculation' column.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Configure the Slicers:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Place the 'Month,' 'A,' 'B,' and 'C' slicers on your report page.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Test the Solution:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Now, when you select values in the slicers, the 'Calculation' column in the table visual should dynamically update based on the selected values.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This approach uses the ISFILTERED function to check whether the 'Month' slicer is being used, and if it is, it performs the calculation; otherwise, it returns BLANK(). The table visual will then display the calculated values dynamically based on your slicer selections.&lt;/P&gt;&lt;P&gt;Remember to replace 'Table' with the actual name of your table in the DAX formulas. Adjust the formulas based on your actual field names and table structure.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Dec 2023 12:55:57 GMT</pubDate>
    <dc:creator>123abc</dc:creator>
    <dc:date>2023-12-12T12:55:57Z</dc:date>
    <item>
      <title>Need help in storing previously selected values from Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-storing-previously-selected-values-from-Slicers/m-p/3579504#M138045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have slicers(Month, A, B, C where Month has months and A,B,C has numeric values), and a table visual with a calculation (A*B*C)as below,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So my requirement is when Jan is selected and lets say A=1, B=2, C=3 then the visual should display as below:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Month&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Calculation&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;6(1*2*3 as per calculation)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Feb&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Mar&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then when I select March and A=4, B=5, C=2 then visual should display as below:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Month&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Calculation&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;6&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Feb&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Mar&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;40&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then when I select Feb and A=10, B=4, C=3 then visual should display as below:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Month&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Calculation&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;6&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Feb&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;120&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Mar&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;40&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know, I’m in Need of Your Expertise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yamini&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 10:28:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-storing-previously-selected-values-from-Slicers/m-p/3579504#M138045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-12T10:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in storing previously selected values from Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-storing-previously-selected-values-from-Slicers/m-p/3579738#M138055</link>
      <description>&lt;P&gt;Here's a step-by-step guide:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create Slicer Fields:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Make sure you have the slicer fields (Month, A, B, C) in your dataset.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create a Calculated Column for the Calculation:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;In the table where you have your data, create a new calculated column. Let's call it "Calculation."&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Use the following DAX formula for the calculated column:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Calculation = IF(ISFILTERED('Table'[Month]), 'Table'[A] * 'Table'[B] * 'Table'[C], BLANK())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;This formula checks if the 'Month' slicer is filtered. If it is, it calculates the result based on the selected A, B, and C values. If not, it returns BLANK().&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Create a Table Visual:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a table visual with 'Month' and the newly created 'Calculation' column.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Configure the Slicers:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Place the 'Month,' 'A,' 'B,' and 'C' slicers on your report page.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Test the Solution:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Now, when you select values in the slicers, the 'Calculation' column in the table visual should dynamically update based on the selected values.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This approach uses the ISFILTERED function to check whether the 'Month' slicer is being used, and if it is, it performs the calculation; otherwise, it returns BLANK(). The table visual will then display the calculated values dynamically based on your slicer selections.&lt;/P&gt;&lt;P&gt;Remember to replace 'Table' with the actual name of your table in the DAX formulas. Adjust the formulas based on your actual field names and table structure.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 12:55:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-storing-previously-selected-values-from-Slicers/m-p/3579738#M138055</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2023-12-12T12:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in storing previously selected values from Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-storing-previously-selected-values-from-Slicers/m-p/3579840#M138062</link>
      <description>&lt;P&gt;Month, A, B, C are in different table&lt;BR /&gt;Can you suggest anything?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 13:52:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-storing-previously-selected-values-from-Slicers/m-p/3579840#M138062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-12T13:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in storing previously selected values from Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-storing-previously-selected-values-from-Slicers/m-p/3579913#M138065</link>
      <description>&lt;P&gt;Revised Answer:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Certainly! If Month, A, B, and C are in different tables, you'll need to modify the DAX code to consider relationships between these tables. Assuming there is a relationship between the tables, you can use RELATED or RELATEDTABLE functions to fetch the corresponding values. Here's an example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculation =&lt;BR /&gt;VAR SelectedMonth = SELECTEDVALUE('MonthTable'[Month])&lt;BR /&gt;VAR SelectedA = SELECTEDVALUE('ATable'[A])&lt;BR /&gt;VAR SelectedB = SELECTEDVALUE('BTable'[B])&lt;BR /&gt;VAR SelectedC = SELECTEDVALUE('CTable'[C])&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;NOT ISBLANK(SelectedMonth),&lt;BR /&gt;RELATED('ATable'[A]) * RELATED('BTable'[B]) * RELATED('CTable'[C]),&lt;BR /&gt;BLANK()&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this example, replace 'MonthTable', 'ATable', 'BTable', and 'CTable' with the actual names of your tables. This assumes there is a relationship between the tables based on the Month column.&lt;/P&gt;&lt;P&gt;Make sure to establish relationships between the tables in the Power BI model. You can do this by going to the "Model" view and dragging the corresponding fields to create relationships.&lt;/P&gt;&lt;P&gt;Adjust the code based on your actual table and column names and the relationships in your model. This approach ensures that the calculations are performed based on the related values from different tables.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 14:51:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-storing-previously-selected-values-from-Slicers/m-p/3579913#M138065</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2023-12-12T14:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in storing previously selected values from Slicers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-storing-previously-selected-values-from-Slicers/m-p/3579974#M138069</link>
      <description>&lt;P&gt;Cant establish a relation as A, B, C are range of numbers which is manually created in power bi desktop and A, B, C are displayed as slider values.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 14:43:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-in-storing-previously-selected-values-from-Slicers/m-p/3579974#M138069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-12T14:43:30Z</dc:date>
    </item>
  </channel>
</rss>

