<?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 pivot - Dynamic Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055754#M105403</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="468033" data-lia-user-login="BaldAccountant" class="lia-mention lia-mention-user"&gt;BaldAccountant&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try using ALL instead of ALLSELECTED&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Cases :=
DIVIDE ( [Cases], CALCULATE ( [Cases], ALL ( Data2 ) ), 0 )&lt;/LI-CODE&gt;
&lt;P&gt;The SWITCH measure can be simplified (just less dax) as follows&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;MeasureValue5 :=
SWITCH (
    MIN ( Multi[Msr Number] ),
    1, CALCULATE ( FORMAT ( [Current % Cases], "#,#0.0%;(#,#0.0%);-" ), Groups ),
    2, CALCULATE ( FORMAT ( [Avg Charges], "#,#0;(#,#0):-" ), Groups ),
    3, CALCULATE ( FORMAT ( [Cases], "#,#0;(#,#0;-" ), Groups ),
    4, CALCULATE ( FORMAT ( [Current % of Charges], "#,#0.0%;(#,#0.0%);-" ), Groups ),
    5,
        CALCULATE (
            FORMAT ( [Expense % Reimbursement], "#,#0.0%;(#,#0.0%);-" ),
            Groups
        )
)&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 01 Feb 2023 16:36:58 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-02-01T16:36:58Z</dc:date>
    <item>
      <title>Power pivot - Dynamic Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055289#M105372</link>
      <description>&lt;P&gt;I am tyring to create a dynamic measure based on a post on another website in power pivot.&amp;nbsp; There are two elements:&lt;/P&gt;&lt;P&gt;-a table that creates dynamic choice of row values (i.e. parse out by insurance type or physician specialty or age of patient or patient status&lt;/P&gt;&lt;P&gt;-a measure that allows the user to pick from multiple measures&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the table, lets call it groups, there are 4 columns:&lt;/P&gt;&lt;P&gt;-group name(i.e insurance type or specialty&lt;/P&gt;&lt;P&gt;-goup value for each item in the broader group (i.e. Blue Cross or Medicare and Specialty Hand vs Foot )&lt;/P&gt;&lt;P&gt;-two or more columns with every permutation of the group values (i.e. Blue Cross Hands, Blue Cross Foot, Medicare Hands, Medicare Foot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure is as follows:&lt;/P&gt;&lt;P&gt;&lt;!--    StartFragment     --&gt;&lt;SPAN class=""&gt;Measure Value5:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;Switch&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;TRUE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(),&lt;/SPAN&gt;&lt;SPAN class=""&gt;min&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Multi[Msr Number])=1,&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;format&lt;/SPAN&gt;&lt;SPAN class=""&gt;([Current % Cases],&lt;/SPAN&gt;&lt;SPAN class=""&gt;"#,#0.0%;(#,#0.0%);-"&lt;/SPAN&gt;&lt;SPAN class=""&gt;),Groups),&lt;/SPAN&gt;&lt;SPAN class=""&gt;min&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Multi[Msr Number])=2,&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;format&lt;/SPAN&gt;&lt;SPAN class=""&gt;([Avg Charges],&lt;/SPAN&gt;&lt;SPAN class=""&gt;"#,#0;(#,#0):-"&lt;/SPAN&gt;&lt;SPAN class=""&gt;),Groups),&lt;/SPAN&gt;&lt;SPAN class=""&gt;min&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Multi[Msr Number])=3,&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;format&lt;/SPAN&gt;&lt;SPAN class=""&gt;([Cases],&lt;/SPAN&gt;&lt;SPAN class=""&gt;"#,#0;(#,#0;-"&lt;/SPAN&gt;&lt;SPAN class=""&gt;),Groups),&lt;/SPAN&gt;&lt;SPAN class=""&gt;min&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Multi[Msr Number])=4,&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;format&lt;/SPAN&gt;&lt;SPAN class=""&gt;([Current % of Charges],&lt;/SPAN&gt;&lt;SPAN class=""&gt;"#,#0.0%;(#,#0.0%);-"&lt;/SPAN&gt;&lt;SPAN class=""&gt;),Groups),&lt;/SPAN&gt;&lt;SPAN class=""&gt;min&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Multi[Msr Number])=5,&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;format&lt;/SPAN&gt;&lt;SPAN class=""&gt;([Expense % Reimbursement],&lt;/SPAN&gt;&lt;SPAN class=""&gt;"#,#0.0%;(#,#0.0%);-"&lt;/SPAN&gt;&lt;SPAN class=""&gt;),Groups))&lt;/SPAN&gt;&lt;!--    EndFragment     --&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The part that is giving me trouble are the Current % of Cases and the Current % of Charges for example&amp;nbsp;&lt;!--    StartFragment     --&gt;Current % Cases:=&lt;SPAN class=""&gt;divide&lt;/SPAN&gt;([Cases],&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;([Cases],&lt;SPAN class=""&gt;ALLSELECTED&lt;/SPAN&gt;(Data2)),0)&lt;!--    EndFragment     --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;It returns 100% for each row, vs 6% for Foot and 94% Hands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The dynamic measure works fine if I use a non dynamic row value.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I know this can be done in the Power BI desktop with parameters, but I tested this setup in the desktop and it did not work there either.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I have a boss that prefers Excel, but would rather just click on a slicer to change the measure or row value vs changing the row value in the pivot table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 14:12:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055289#M105372</guid>
      <dc:creator>BaldAccountant</dc:creator>
      <dc:date>2023-02-17T14:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Power pivot - Dynamic Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055382#M105379</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="468033" data-lia-user-login="BaldAccountant" class="lia-mention lia-mention-user"&gt;BaldAccountant&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;My understanding:&lt;BR /&gt;1. 'Multi' is used to select between different measures.&lt;/P&gt;
&lt;P&gt;2. Group is used for slicing and dicing.&lt;/P&gt;
&lt;P&gt;3. Data2 is the main table with all the data.&lt;/P&gt;
&lt;P&gt;4. No relationships.&lt;/P&gt;
&lt;P&gt;Please correct me if I'm wrong.&lt;BR /&gt;My guess would be that&amp;nbsp;&lt;SPAN class=""&gt;ALLSELECTED&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;( Data2 ) is creating this issue. However, won't be able to provide a concerete solution without having the complete picture. Would you please share a screenshot of the Pivot Table blanking out any sensetive data but indicating which column in the pivot table belongs to which table?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 14:19:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055382#M105379</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-01T14:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Power pivot - Dynamic Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055437#M105383</link>
      <description>&lt;P&gt;There are relationships betwen the tables, but 1-3 are correct&lt;/P&gt;&lt;P&gt;There are intermediary tables between the Groups FinClass column and Data2 via an intermediary table and between the Groups Specialty column and the Data2 via another intermediary table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 14:33:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055437#M105383</guid>
      <dc:creator>BaldAccountant</dc:creator>
      <dc:date>2023-02-01T14:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Power pivot - Dynamic Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055657#M105399</link>
      <description>&lt;P&gt;Here is a real basic example&lt;/P&gt;&lt;P&gt;Data&lt;/P&gt;&lt;P&gt;IDFCSpecialtyCharge&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Blue Cross&lt;/TD&gt;&lt;TD&gt;Hand&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;MCR&lt;/TD&gt;&lt;TD&gt;Hand&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Blue Cross&lt;/TD&gt;&lt;TD&gt;Foot&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Intermediary table 1&lt;/P&gt;&lt;P&gt;Fin Class2Fin Class3&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Blue Cross&lt;/TD&gt;&lt;TD&gt;Blue Cross&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;MCR&lt;/TD&gt;&lt;TD&gt;MCR&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Intermediary table 2&lt;/P&gt;&lt;P&gt;Spec2Spec3&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Foot&lt;/TD&gt;&lt;TD&gt;Foot&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Hand&lt;/TD&gt;&lt;TD&gt;Hand&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Groups&lt;/P&gt;&lt;P&gt;Group nameGroup ValuesFin ClassSpecialty&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Fin Class&lt;/TD&gt;&lt;TD&gt;Blue Cross&lt;/TD&gt;&lt;TD&gt;Blue Cross&lt;/TD&gt;&lt;TD&gt;Hand&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Fin Class&lt;/TD&gt;&lt;TD&gt;Blue Cross&lt;/TD&gt;&lt;TD&gt;Blue Cross&lt;/TD&gt;&lt;TD&gt;Foot&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Fin Class&lt;/TD&gt;&lt;TD&gt;MCR&lt;/TD&gt;&lt;TD&gt;MCR&lt;/TD&gt;&lt;TD&gt;Hand&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Fin Class&lt;/TD&gt;&lt;TD&gt;MCR&lt;/TD&gt;&lt;TD&gt;MCR&lt;/TD&gt;&lt;TD&gt;Foot&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Specialty&lt;/TD&gt;&lt;TD&gt;Hand&lt;/TD&gt;&lt;TD&gt;Hand&lt;/TD&gt;&lt;TD&gt;Hand&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Specialty&lt;/TD&gt;&lt;TD&gt;Hand&lt;/TD&gt;&lt;TD&gt;Hand&lt;/TD&gt;&lt;TD&gt;Foot&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Specialty&lt;/TD&gt;&lt;TD&gt;Foot&lt;/TD&gt;&lt;TD&gt;Foot&lt;/TD&gt;&lt;TD&gt;Hand&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Specialty&lt;/TD&gt;&lt;TD&gt;Foot&lt;/TD&gt;&lt;TD&gt;Foot&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Foot&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Measures table&lt;/P&gt;&lt;P&gt;MeasureMSR Number&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Pct of Cases&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Pct of Charges&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;!--  StartFragment   --&gt;&lt;SPAN class=""&gt;Pct of Cases:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN class=""&gt;([Cases],&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;([Cases],&lt;/SPAN&gt;&lt;SPAN class=""&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Data)),0)&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;&lt;!--  StartFragment   --&gt;&lt;SPAN class=""&gt;Pct of Charges:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN class=""&gt;([Charges],&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;([Charges],&lt;/SPAN&gt;&lt;SPAN class=""&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Data)),0)&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;&lt;!--  StartFragment   --&gt;&lt;SPAN class=""&gt;Measure Calc:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;switch&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;TRUE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(),&lt;/SPAN&gt;&lt;SPAN class=""&gt;min&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Multi[MSR Number])=1,[Pct of Cases],&lt;/SPAN&gt;&lt;SPAN class=""&gt;min&lt;/SPAN&gt;&lt;SPAN class=""&gt;(Multi[MSR Number])=2,[Pct of Charges])&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;Relationships - I was wrong - measures does not have a relationship&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 15:50:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055657#M105399</guid>
      <dc:creator>BaldAccountant</dc:creator>
      <dc:date>2023-02-01T15:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Power pivot - Dynamic Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055754#M105403</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="468033" data-lia-user-login="BaldAccountant" class="lia-mention lia-mention-user"&gt;BaldAccountant&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try using ALL instead of ALLSELECTED&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Cases :=
DIVIDE ( [Cases], CALCULATE ( [Cases], ALL ( Data2 ) ), 0 )&lt;/LI-CODE&gt;
&lt;P&gt;The SWITCH measure can be simplified (just less dax) as follows&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;MeasureValue5 :=
SWITCH (
    MIN ( Multi[Msr Number] ),
    1, CALCULATE ( FORMAT ( [Current % Cases], "#,#0.0%;(#,#0.0%);-" ), Groups ),
    2, CALCULATE ( FORMAT ( [Avg Charges], "#,#0;(#,#0):-" ), Groups ),
    3, CALCULATE ( FORMAT ( [Cases], "#,#0;(#,#0;-" ), Groups ),
    4, CALCULATE ( FORMAT ( [Current % of Charges], "#,#0.0%;(#,#0.0%);-" ), Groups ),
    5,
        CALCULATE (
            FORMAT ( [Expense % Reimbursement], "#,#0.0%;(#,#0.0%);-" ),
            Groups
        )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Feb 2023 16:36:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055754#M105403</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-01T16:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Power pivot - Dynamic Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055773#M105404</link>
      <description>&lt;P&gt;Sorry, I tried your solution using ALL instead ALLSELECTED, but it gave the same result, all 100%&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 16:53:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055773#M105404</guid>
      <dc:creator>BaldAccountant</dc:creator>
      <dc:date>2023-02-01T16:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Power pivot - Dynamic Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055816#M105411</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="468033" data-lia-user-login="BaldAccountant" class="lia-mention lia-mention-user"&gt;BaldAccountant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any possibility you can share a sample file?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 17:18:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055816#M105411</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-01T17:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Power pivot - Dynamic Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055822#M105412</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/scl/fi/0heufh4hjn8nm66m43ir8/Dynamic-measures.xlsx?dl=0&amp;amp;rlkey=rodsu7sae6hzs46f1gylcrxj4" target="_blank"&gt;https://www.dropbox.com/scl/fi/0heufh4hjn8nm66m43ir8/Dynamic-measures.xlsx?dl=0&amp;amp;rlkey=rodsu7sae6hzs46f1gylcrxj4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 17:24:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3055822#M105412</guid>
      <dc:creator>BaldAccountant</dc:creator>
      <dc:date>2023-02-01T17:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Power pivot - Dynamic Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3057384#M105519</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="468033" data-lia-user-login="BaldAccountant" class="lia-mention lia-mention-user"&gt;BaldAccountant&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I've changed the data model relaying more on DAX. Please refer to attached sample file.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
VAR FilterTable =
    FILTER (
        Data,
        CONTAINS ( VALUES ( Groups[Group Values] ), Groups[Group Values], Data[FC] )
            || CONTAINS (
                VALUES ( Groups[Group Values] ),
                Groups[Group Values], Data[Specialty]
            )
    )
RETURN
    SWITCH (
        MIN ( Multi[MSR Number] ),
        1, DIVIDE ( CALCULATE ( [Cases], FilterTable ), [Cases] ),
        2, DIVIDE ( CALCULATE ( [Charges], FilterTable ), [Charges] )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Feb 2023 09:20:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3057384#M105519</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-02T09:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Power pivot - Dynamic Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3057895#M105552</link>
      <description>&lt;P&gt;Thank you very much!&amp;nbsp; You are amazing.&lt;/P&gt;&lt;P&gt;This is the first time I have posted a question here.&amp;nbsp; It's the first time I could not solve something on my own and it felt like I was quitting, but I guess everyone needs a little help from time to time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 13:17:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3057895#M105552</guid>
      <dc:creator>BaldAccountant</dc:creator>
      <dc:date>2023-02-02T13:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Power pivot - Dynamic Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3066552#M106197</link>
      <description>&lt;P&gt;As a side note, my actual spreadsheet had more group options and more measures.&amp;nbsp; Most of the group options were in seperate linked tables (Financial Class was the only one on the data table).&amp;nbsp; I am not sure if this is the best way to do this, but I added these group options to the data table using the related&amp;nbsp; function.&amp;nbsp; if there is a better way to do this, please let me know.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 15:22:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3066552#M106197</guid>
      <dc:creator>BaldAccountant</dc:creator>
      <dc:date>2023-02-07T15:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Power pivot - Dynamic Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3066640#M106211</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="468033" data-lia-user-login="BaldAccountant" class="lia-mention lia-mention-user"&gt;BaldAccountant&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use RELATED indide the FILTER function to filter the Dimension Tables likr this&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;VAR GroupValues =&lt;BR /&gt;VALUES ( Groups[Group Values] )&lt;BR /&gt;VAR FilterTable =&lt;BR /&gt;FILTER (&lt;BR /&gt;Data,&lt;BR /&gt;CONTAINS ( GroupValues, Groups[Group Values], Data[FC] )&lt;BR /&gt;|| CONTAINS ( GroupValues, Groups[Group Values], Data[Specialty] )&lt;BR /&gt;|| CONTAINS ( GroupValues, Groups[Group Values], RELATED ( DimTable[Column] ) )&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 16:03:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-pivot-Dynamic-Measure/m-p/3066640#M106211</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-07T16:03:32Z</dc:date>
    </item>
  </channel>
</rss>

