<?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: Convert Dinamic Measure to Column for its usage as a category in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442875#M65478</link>
    <description>&lt;P&gt;This is how to do this in a professional and robust manner:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.daxpatterns.com/abc-classification/" target="_blank"&gt;ABC classification – DAX Patterns&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 09:13:10 GMT</pubDate>
    <dc:creator>daXtreme</dc:creator>
    <dc:date>2022-04-07T09:13:10Z</dc:date>
    <item>
      <title>Convert Dinamic Measure to Column for its usage as a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2441709#M65411</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm making product ABC analysis for pre-selected single month through slicer and it works. Here is the measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ABCD on Profit = 
VAR summary =
    ADDCOLUMNS ( ALLSELECTED( C_GOODS), "cSales", [1st 12M Profitability] )

 VAR ProfitRanks=RANKX(ALLSELECTED(C_GOODS),[1st 12M Profitability])

VAR RunningTotal_Prod_Sales=SUMX (
        TOPN ( ProfitRanks, summary, [cSales], DESC ),
        [cSales]
    )
VAR GrandTotal_for_TotalSales=SUMX ( summary, [cSales] )
VAR RunnigTotal_ProdSales_Shares =
    DIVIDE ( RunningTotal_Prod_Sales, GrandTotal_for_TotalSales, 0 )
RETURN
    SWITCH (
        TRUE (),
        RunnigTotal_ProdSales_Shares &amp;lt;= 0.8, "A",
        RunnigTotal_ProdSales_Shares &amp;gt; 0.8
            &amp;amp;&amp;amp; RunnigTotal_ProdSales_Shares &amp;lt;= 0.95, "B",
        RunnigTotal_ProdSales_Shares &amp;gt; 0.95
            &amp;amp;&amp;amp; RunnigTotal_ProdSales_Shares &amp;lt;= 0.99, "C",
        RunnigTotal_ProdSales_Shares &amp;gt; 0.99
            &amp;amp;&amp;amp; RunnigTotal_ProdSales_Shares &amp;lt;= 1, "D",
        "X"
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, I would like to use the results A,B,C,D.. as a category for visualts to count products, values etc..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;When I copy-paste this measure into "Calculated Column" ut does not work, showing only "A"..&lt;BR /&gt;Also, as you can undestand, for each month the ABCD results for the same product list could be different.&lt;BR /&gt;&lt;BR /&gt;Please help in solving this issue.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;George&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 21:37:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2441709#M65411</guid>
      <dc:creator>George1973</dc:creator>
      <dc:date>2022-04-06T21:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dinamic Measure to Column for its usage as a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442045#M65437</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251408" data-lia-user-login="George1973" class="lia-mention lia-mention-user"&gt;George1973&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Creating a calculated column requires different code and wont be as dynamic as you would expect. Alternatively you can create a singular column disconnected filter table that contains A, B, C and D and use this column as a slicer or in a martix rows/columns. Example&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Filter Table =
SELECTCOLUMNS ( { "A", "B", "C", "D" }, "Class", [Value] )&lt;/LI-CODE&gt;&lt;P&gt;Then you can use SELECTEDVALUE to compare the selection with the outcome of the measure in the current filter context.&lt;BR /&gt;Please&amp;nbsp;provide a sample file and details of the expected results in order to asset you further.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 03:30:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442045#M65437</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-07T03:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dinamic Measure to Column for its usage as a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442144#M65441</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="227317" data-lia-user-login="tamim" class="lia-mention lia-mention-user"&gt;tamim&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the respond.&lt;BR /&gt;Suppose I want to get this result:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I can not provide the data itself, because itrs too large &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 04:40:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442144#M65441</guid>
      <dc:creator>George1973</dc:creator>
      <dc:date>2022-04-07T04:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dinamic Measure to Column for its usage as a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442176#M65444</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251408" data-lia-user-login="George1973" class="lia-mention lia-mention-user"&gt;George1973&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;You may please prepare sample data of only the relevant&amp;nbsp;calculation. You can use dummy data to avoid&amp;nbsp;sharing sensitive information.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 05:03:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442176#M65444</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-07T05:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dinamic Measure to Column for its usage as a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442506#M65457</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a samble BI data Base, but I can not attach it to the reply. I do not know why.&lt;BR /&gt;&lt;BR /&gt;Here is the matrix:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have shared it through the drop-box:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/02dlo3k8ouzsgwd/Sample%20DB.pbix?dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/s/02dlo3k8ouzsgwd/Sample%20DB.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, once again: The idea is to make ABCD measure a functional "Column-Category" data, which can be used for the other vizuals as a category for X/Y axis.. or whatsoever..&lt;BR /&gt;&lt;BR /&gt;Once again, your logic is very interesting:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Filter Table =
SELECTCOLUMNS ( { "A", "B", "C", "D" }, "Class", [Value] )&lt;/PRE&gt;&lt;P&gt;But I do not undesrtand which measure/parameter should I insert in [VALUE]..&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 07:13:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442506#M65457</guid>
      <dc:creator>George1973</dc:creator>
      <dc:date>2022-04-07T07:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dinamic Measure to Column for its usage as a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442766#M65472</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251408" data-lia-user-login="George1973" class="lia-mention lia-mention-user"&gt;George1973&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please download and check sample file with the solution&amp;nbsp;&lt;A href="https://www.dropbox.com/t/pBW046fcBJHu5mlN" target="_blank"&gt;https://www.dropbox.com/t/pBW046fcBJHu5mlN&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 08:35:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442766#M65472</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-07T08:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dinamic Measure to Column for its usage as a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442875#M65478</link>
      <description>&lt;P&gt;This is how to do this in a professional and robust manner:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.daxpatterns.com/abc-classification/" target="_blank"&gt;ABC classification – DAX Patterns&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 09:13:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442875#M65478</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-04-07T09:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dinamic Measure to Column for its usage as a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442977#M65479</link>
      <description>&lt;P&gt;Thanks a lot! Checked and seems that it's a right solution!!!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 09:52:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2442977#M65479</guid>
      <dc:creator>George1973</dc:creator>
      <dc:date>2022-04-07T09:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dinamic Measure to Column for its usage as a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2443189#M65483</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251408" data-lia-user-login="George1973" class="lia-mention lia-mention-user"&gt;George1973&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still few things need to be done to create the required chart. I can help if you need any further help with DAX code. However, am not the best guy to relay on when comes to charts &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 10:55:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2443189#M65483</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-07T10:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dinamic Measure to Column for its usage as a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2443768#M65518</link>
      <description>&lt;P&gt;:))&lt;BR /&gt;Well, well, well - I have crossed checked the formulas. It works in general, but there are some "strange" issues happen, like:&lt;BR /&gt;&lt;STRONG&gt;1. The "filter tables" errors&lt;/STRONG&gt;:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This was the first table I have created according to your suggestions. It was error free.. Now it gives me this.&lt;BR /&gt;&lt;BR /&gt;After that I crated the second table for other category;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And it was and is error free.&lt;BR /&gt;&lt;BR /&gt;But, when I try to create another category tabe:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ABC Analysis Filter = 
SELECTCOLUMNS (
     {
    "A-A-A",
    "A-A-B",
    "A-A-C",
    "A-B-A",
    "A-B-B",
    "A-B-C",
    "A-C-A",
    "A-C-B",
    "A-C-C",
    "B-A-A",
    "B-A-B",
    "B-A-C",
    "B-B-A",
    "B-B-B",
    "B-B-C",
    "B-C-A",
    "B-C-B",
    "B-C-C",
    "C-A-A",
    "C-A-B",
    "C-A-C",
    "C-B-A",
    "C-B-B",
    "C-B-C",
    "C-C-A",
    "C-C-B",
    "C-C-C"
     }, "ClassCat", [Value] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm am told that:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Even, when I'm trying to use the exactly the same code, which I used for the table #1, just for check:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;(As you can see the tabe names are different)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;2. Charts are ok&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But the data itself is calculated wrongly somehow.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;3. Errors in Data&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/s/00t5781kkruc4rv/Sample%20Data%20-%20hits.xlsx?dl=0" target="_blank"&gt;https://www.dropbox.com/s/00t5781kkruc4rv/Sample%20Data%20-%20hits.xlsx?dl=0&lt;/A&gt;&lt;BR /&gt;Here is the Excel Data sheet, where I have extracted the odiginal data.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;In visuals, it says that I have, for example "A" group with 80 records, but in the reality (In excel, it's about 154). For "B" - we have 112, but in excel there is - 239.. and so on &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have tried hard to find out the reasons, but failed.&lt;BR /&gt;Please help.. I think there is a tiny thing we're missing.. to get it done fully&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&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>Thu, 07 Apr 2022 14:33:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2443768#M65518</guid>
      <dc:creator>George1973</dc:creator>
      <dc:date>2022-04-07T14:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Dinamic Measure to Column for its usage as a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2443955#M65532</link>
      <description>&lt;P&gt;I'll look into it and get back to you&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 15:40:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-Dinamic-Measure-to-Column-for-its-usage-as-a-category/m-p/2443955#M65532</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-07T15:40:55Z</dc:date>
    </item>
  </channel>
</rss>

