<?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: Power BI Dax combine sub total of visible tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Dax-combine-sub-total-of-visible-tables/m-p/4278686#M169780</link>
    <description>&lt;P&gt;Thank you so much for the help!! I was able to resolve the issues. I have posted the solution too.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2024 20:11:17 GMT</pubDate>
    <dc:creator>msam1977_SM</dc:creator>
    <dc:date>2024-11-11T20:11:17Z</dc:date>
    <item>
      <title>Power BI Dax combine sub total of visible tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Dax-combine-sub-total-of-visible-tables/m-p/4275825#M169646</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm looking to build a DAX statement based on the visual tables, and I've attached a sample image for reference. I have a toggle button that shows and hides certain tables, but I need a total that only includes the visible tables. Currently, I'm getting the sum from all tables, not just the ones that are unhidden. Could you help me with this? Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 15:20:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Dax-combine-sub-total-of-visible-tables/m-p/4275825#M169646</guid>
      <dc:creator>msam1977_SM</dc:creator>
      <dc:date>2024-11-08T15:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Dax combine sub total of visible tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Dax-combine-sub-total-of-visible-tables/m-p/4276298#M169668</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="823269" data-lia-user-login="msam1977_SM" class="lia-mention lia-mention-user"&gt;msam1977_SM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Power BI, DAX measures cannot detect the visibility state of visuals controlled by bookmarks or selection panes. However, you can achieve your goal by linking the table visibility to data selections that DAX can reference. Here's how:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Create a Table for Toggle Selections:&lt;/STRONG&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Create a new table&lt;/STRONG&gt; (e.g., TableVisibility) with the names of the tables you want to show or hide:&lt;/LI&gt;
&lt;/UL&gt;
&lt;/OL&gt;
&lt;P&gt;TableVisibility =&lt;/P&gt;
&lt;P&gt;DATATABLE(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "TableName", STRING,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {"Table1"},&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {"Table2"},&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {"Table3"}&amp;nbsp; // Add as many tables as needed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Add a Slicer for Table Selection:&lt;/STRONG&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Insert a slicer&lt;/STRONG&gt; using the TableVisibility[TableName] column.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Allow multiple selections&lt;/STRONG&gt; so users can select which tables to display.&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Modify Each Table Visual:&lt;/STRONG&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;For each table visual&lt;/STRONG&gt;, add a visual-level filter:&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Field:&lt;/STRONG&gt; TableVisibility[TableName]&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Filter Condition:&lt;/STRONG&gt; TableName is equal to the name corresponding to that visual.&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt; For "Table1" visual, set the filter to TableName = "Table1".&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Create Measures for Each Table Total:&lt;/STRONG&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Calculate totals&lt;/STRONG&gt; for each table individually.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/OL&gt;
&lt;P&gt;Total_Table1 = SUM('Table1'[Value])&lt;/P&gt;
&lt;P&gt;Total_Table2 = SUM('Table2'[Value])&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Create a Measure for the Combined Total:&lt;/STRONG&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Use the slicer selection&lt;/STRONG&gt; to sum totals only from visible tables:&lt;/LI&gt;
&lt;/UL&gt;
&lt;/OL&gt;
&lt;P&gt;TotalVisible =&lt;/P&gt;
&lt;P&gt;VAR SelectedTables = VALUES(TableVisibility[TableName])&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;SUMX(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectedTables,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SWITCH(&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRUE(),&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableVisibility[TableName] = "Table1", [Total_Table1],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableVisibility[TableName] = "Table2", [Total_Table2],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableVisibility[TableName] = "Table3", [Total_Table3],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;Display the Combined Total:&lt;/STRONG&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Add a card or visual&lt;/STRONG&gt; to display the TotalVisible measure.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;This total will update&lt;/STRONG&gt; based on the tables selected in the slicer.&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Optional – Hide the Slicer:&lt;/STRONG&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;If you prefer to use buttons instead of showing the slicer:&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Use bookmarks and buttons&lt;/STRONG&gt; to set the selection in the slicer.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Assign bookmark actions&lt;/STRONG&gt; to buttons to simulate toggling.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/UL&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Important Notes:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;DAX Limitations:&lt;/STRONG&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;DAX cannot read the visibility state of visuals controlled by bookmarks.&lt;/LI&gt;
&lt;LI&gt;Measures can only respond to data selections, not visual properties.&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Consistent Interaction:&lt;/STRONG&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;By tying the visibility and totals to the same selection (the slicer), you ensure that both the displayed tables and the combined total remain in sync.&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI&gt;&lt;STRONG&gt;User Experience:&lt;/STRONG&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;You can &lt;STRONG&gt;format the slicer&lt;/STRONG&gt; to look like toggle buttons for a cleaner interface.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Hide slicer headers&lt;/STRONG&gt; and adjust formatting to match your report design.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Conclusion:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;By linking table visibility to slicer selections that your DAX measures can reference, you can dynamically calculate totals based on which tables are visible to the user. This approach aligns the data model with the report visuals, providing the functionality you need.&lt;/P&gt;
&lt;P&gt;If this post&lt;STRONG&gt; helps&lt;/STRONG&gt;, please consider &lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank" rel="noopener noreferrer"&gt;LinkedIn&lt;/A&gt;|&lt;A href="https://twitter.com/VahidDMcom" target="_blank" rel="noopener noreferrer"&gt;Twitter&lt;/A&gt;|&lt;A href="https://www.vahiddm.com/" target="_blank" rel="noopener noreferrer"&gt;Blog&amp;nbsp;&lt;/A&gt;|&lt;A href="https://www.youtube.com/@databis" target="_blank" rel="noopener noreferrer"&gt;YouTube&lt;/A&gt;&lt;A href="https://www.youtube.com/@databis" target="_blank" rel="noopener noreferrer"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Nov 2024 01:30:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Dax-combine-sub-total-of-visible-tables/m-p/4276298#M169668</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2024-11-09T01:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Dax combine sub total of visible tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Dax-combine-sub-total-of-visible-tables/m-p/4277412#M169721</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="823269" data-lia-user-login="msam1977_SM" class="lia-mention lia-mention-user"&gt;msam1977_SM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use measure to manually calculate the desired result separately and then use bookmark to switch between different visualizations. You can refer to the following example, details can be found in the attachment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _sum1 = CALCULATE(SUM(financials[ Sales]),FILTER(ALL(financials),'financials'[Year] = 2013 || 'financials'[Year] = 2014))
VAR _sum2 = CALCULATE(SUM(financials[ Sales]),FILTER(ALL(financials),'financials'[Month Number] = 1 || 'financials'[Month Number] = 2 || 'financials'[Month Number] = 3))
RETURN
_sum1 + _sum2&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = 
VAR _sum1 = CALCULATE(SUM(financials[ Sales]),FILTER(ALL(financials),'financials'[Year] = 2013 || 'financials'[Year] = 2014))
VAR _sum2 = CALCULATE(SUM(financials[ Sales]),FILTER(ALL(financials),'financials'[Month Number] = 1 || 'financials'[Month Number] = 2 || 'financials'[Month Number] = 3))
VAR _sum3 = CALCULATE(SUM(financials[ Sales]),FILTER(ALL(financials), 'financials'[Date].[QuarterNo] = 1 || 'financials'[Date].[QuarterNo] = 2))
RETURN
_sum1 + _sum2 + _sum3&lt;/LI-CODE&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;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 02:36:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Dax-combine-sub-total-of-visible-tables/m-p/4277412#M169721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-11T02:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Dax combine sub total of visible tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Dax-combine-sub-total-of-visible-tables/m-p/4278143#M169757</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="823269" data-lia-user-login="msam1977_SM" class="lia-mention lia-mention-user"&gt;msam1977_SM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DAX
Visible Total = 
CALCULATE(
    SUM(Sales[Amount]),
    FILTER(
        'Visibility Control', 
        'Visibility Control'[IsVisible] = 1
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;DAX can't detect visual visibility directly&lt;/STRONG&gt;. You need to use slicers, parameters, or bookmarks to control the state and then use DAX to evaluate that state.&lt;/LI&gt;&lt;LI&gt;The slicer or parameter-based solution allows you to build dynamic measures that change based on user input, such as selecting visible tables in your visual.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you provide more details about how you're toggling the tables (using bookmarks, buttons, or slicers), I can give more specific advice or DAX formulas tailored to your setup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution, this will help others!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If my response(s) assisted you in any way, don't forget to drop me a "&lt;STRONG&gt;Kudos&lt;/STRONG&gt;" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Poojara&lt;BR /&gt;Data Analyst | MSBI Developer | Power BI Consultant&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 11:07:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Dax-combine-sub-total-of-visible-tables/m-p/4278143#M169757</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2024-11-11T11:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Dax combine sub total of visible tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Dax-combine-sub-total-of-visible-tables/m-p/4278683#M169779</link>
      <description>&lt;P&gt;Thank you for the idea! I made some customizations to my Power BI setup. I created three tables, each dedicated to a specific slicer, and connected them to the data to enable filtering. This approach allowed me to remove the bookmark or toggle functionality from the code.&lt;/P&gt;&lt;P&gt;For the "TotalYearly" calculation, I used the following code as a reference, which might be helpful to others:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;_TotalValue =&lt;BR /&gt;VAR _SumProd_Month =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Calendar Year Rebates'[Rebate]),&lt;BR /&gt;'Calendar Year Rebates'[Type] = "Month",&lt;BR /&gt;'Calendar Year Rebates'[StageFlag] = "PROD"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR _SumStage_Month =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Calendar Year Rebates'[Rebate]),&lt;BR /&gt;'Calendar Year Rebates'[Type] = "Month",&lt;BR /&gt;'Calendar Year Rebates'[StageFlag] = "Stage"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR _SM_Month = SELECTEDVALUE(Dim_Month[ToggleMonth])&lt;/P&gt;&lt;P&gt;VAR _MonthValue = IF(&lt;BR /&gt;HASONEVALUE(Dim_Month[ToggleMonth]),&lt;BR /&gt;IF(_SM_Month = "ON", _SumStage_Month, _SumProd_Month),&lt;BR /&gt;0&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;VAR _SumProd_Quarter =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Calendar Year Rebates'[Rebate]),&lt;BR /&gt;'Calendar Year Rebates'[Type] = "Quarter",&lt;BR /&gt;'Calendar Year Rebates'[StageFlag] = "PROD"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR _SumStage_Quarter =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Calendar Year Rebates'[Rebate]),&lt;BR /&gt;'Calendar Year Rebates'[Type] = "Quarter",&lt;BR /&gt;'Calendar Year Rebates'[StageFlag] = "Stage"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR _SM_Quarter = SELECTEDVALUE(Dim_Qtr[ToggleQtr])&lt;/P&gt;&lt;P&gt;VAR _QuarterValue = IF(&lt;BR /&gt;HASONEVALUE(Dim_Qtr[ToggleQtr]),&lt;BR /&gt;IF(_SM_Quarter = "ON", _SumStage_Quarter, _SumProd_Quarter),&lt;BR /&gt;0&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;VAR _SumProd_Year =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Calendar Year Rebates'[Rebate]),&lt;BR /&gt;'Calendar Year Rebates'[Type] = "Year",&lt;BR /&gt;'Calendar Year Rebates'[StageFlag] = "PROD"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR _SumStage_Year =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Calendar Year Rebates'[Rebate]),&lt;BR /&gt;'Calendar Year Rebates'[Type] = "Year",&lt;BR /&gt;'Calendar Year Rebates'[StageFlag] = "Stage"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR _SM_Year = SELECTEDVALUE(Dim_Year[ToggleYear])&lt;/P&gt;&lt;P&gt;VAR _YearValue = IF(&lt;BR /&gt;HASONEVALUE(Dim_Year[ToggleYear]),&lt;BR /&gt;IF(_SM_Year = "ON", _SumStage_Year, _SumProd_Year),&lt;BR /&gt;0&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;VAR _TotalValue = _MonthValue + _QuarterValue + _YearValue&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;VAR __ValueToShow = IF(ISBLANK(_TotalValue), "-", _TotalValue)&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;IF([Complex Selector]=1,__ValueToShow,BLANK())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 20:07:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Dax-combine-sub-total-of-visible-tables/m-p/4278683#M169779</guid>
      <dc:creator>msam1977_SM</dc:creator>
      <dc:date>2024-11-11T20:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Dax combine sub total of visible tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Dax-combine-sub-total-of-visible-tables/m-p/4278686#M169780</link>
      <description>&lt;P&gt;Thank you so much for the help!! I was able to resolve the issues. I have posted the solution too.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 20:11:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Dax-combine-sub-total-of-visible-tables/m-p/4278686#M169780</guid>
      <dc:creator>msam1977_SM</dc:creator>
      <dc:date>2024-11-11T20:11:17Z</dc:date>
    </item>
  </channel>
</rss>

