<?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 Change measure default behavior with calculation groups in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-default-behavior-with-calculation-groups/m-p/3922604#M152660</link>
    <description>&lt;P&gt;Hey guys,&lt;BR /&gt;&lt;BR /&gt;I just got a request to change the default behavior of all our measures in Power Bi and was wondering if any of you have any good tips before I start breaking everything&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;We have a central semantic model for our Sales data. What I want to to is alter the dafult calculations for a lot of measures. This is a a very simple measure which calculates our Order Inflow:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE(
    SUM( 'Fact Order'[OrderinflowAmount] ),
    'Fact Order'[IsCancelled] = 0
)&lt;/LI-CODE&gt;&lt;P&gt;We've recently acquired some companies and have mapped their historical sales to our channels (which is different websites) and I did this Calculation Group to alter the behavior of measures.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OnlyGroupSales: = CALCULATE(
    SELECTEDMEASURE( ),
    'Dim Order Source'[Channel] &amp;lt;&amp;gt; "OLD"
)

AllSales :  CALCULATE(
    SELECTEDMEASURE( )
)&lt;/LI-CODE&gt;&lt;P&gt;The request is now to have the "OnlyGroupSales" as the default calculations for our measures. There are roughly 50 measures that I want to change the default behaviorof. I also want to have the ability to switch between the "AllSales" behavior and "OnlyGroupSales" behavior.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is this possible using calculation groups or do I have to change all individual measures and create a new calculation group that does the inverse of my OnlyGroupSales? I thought this would be an easy fix, but perhaps it is not possible. Any suggestions would be greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 06:55:48 GMT</pubDate>
    <dc:creator>AlexanderNN</dc:creator>
    <dc:date>2024-05-16T06:55:48Z</dc:date>
    <item>
      <title>Change measure default behavior with calculation groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-default-behavior-with-calculation-groups/m-p/3922604#M152660</link>
      <description>&lt;P&gt;Hey guys,&lt;BR /&gt;&lt;BR /&gt;I just got a request to change the default behavior of all our measures in Power Bi and was wondering if any of you have any good tips before I start breaking everything&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;We have a central semantic model for our Sales data. What I want to to is alter the dafult calculations for a lot of measures. This is a a very simple measure which calculates our Order Inflow:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CALCULATE(
    SUM( 'Fact Order'[OrderinflowAmount] ),
    'Fact Order'[IsCancelled] = 0
)&lt;/LI-CODE&gt;&lt;P&gt;We've recently acquired some companies and have mapped their historical sales to our channels (which is different websites) and I did this Calculation Group to alter the behavior of measures.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;OnlyGroupSales: = CALCULATE(
    SELECTEDMEASURE( ),
    'Dim Order Source'[Channel] &amp;lt;&amp;gt; "OLD"
)

AllSales :  CALCULATE(
    SELECTEDMEASURE( )
)&lt;/LI-CODE&gt;&lt;P&gt;The request is now to have the "OnlyGroupSales" as the default calculations for our measures. There are roughly 50 measures that I want to change the default behaviorof. I also want to have the ability to switch between the "AllSales" behavior and "OnlyGroupSales" behavior.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is this possible using calculation groups or do I have to change all individual measures and create a new calculation group that does the inverse of my OnlyGroupSales? I thought this would be an easy fix, but perhaps it is not possible. Any suggestions would be greatly appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 06:55:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-default-behavior-with-calculation-groups/m-p/3922604#M152660</guid>
      <dc:creator>AlexanderNN</dc:creator>
      <dc:date>2024-05-16T06:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure default behavior with calculation groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-default-behavior-with-calculation-groups/m-p/3923154#M152671</link>
      <description>&lt;P&gt;If&amp;nbsp;&lt;SPAN&gt;"OnlyGroupSales" and "AllSales" are calculation items within the same Calculation Group, then you can use a slicer or the filter pane to select&amp;nbsp;"OnlyGroupSales" as the default, by having this selected when you share/publish the report, and users will be able to switch to the AllSales by using the filter.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sorry if I'm missing something and oversimplifying.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 08:58:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-default-behavior-with-calculation-groups/m-p/3923154#M152671</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-05-16T08:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure default behavior with calculation groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-default-behavior-with-calculation-groups/m-p/3923721#M152684</link>
      <description>&lt;P&gt;Based on the description you aren't missing something. However, this model has around 10 reports tied to it and I am curious if it is possible to change the default behavior in the model instead of having to edit all reports.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So your solution is the fallback solution if there's no other way.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 10:59:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-default-behavior-with-calculation-groups/m-p/3923721#M152684</guid>
      <dc:creator>AlexanderNN</dc:creator>
      <dc:date>2024-05-16T10:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure default behavior with calculation groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-default-behavior-with-calculation-groups/m-p/3923989#M152687</link>
      <description>&lt;P&gt;There's nothing I'm aware of that would do this. I think the solution is to change the reports.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 12:01:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-default-behavior-with-calculation-groups/m-p/3923989#M152687</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-05-16T12:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change measure default behavior with calculation groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-default-behavior-with-calculation-groups/m-p/4303095#M170862</link>
      <description>&lt;P&gt;Calculation groups have recently been extended to support default selections. Take a look at the 'noSelectionExpression' here&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/analysis-services/tabular-models/calculation-groups?view=asallproducts-allversions#selection-expressions-preview" target="_blank"&gt;Calculation groups in Analysis Services tabular models | Microsoft Learn&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;Simply paste the expression for 'OnlyGroupSales' into the noSelectionExpression, and it should apply to every measure reference without end users making any calc item selections.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Note that you have to use tabular editor to author these artifacts.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 02:32:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-measure-default-behavior-with-calculation-groups/m-p/4303095#M170862</guid>
      <dc:creator>datadatadatadat</dc:creator>
      <dc:date>2024-11-27T02:32:07Z</dc:date>
    </item>
  </channel>
</rss>

