<?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 URGENT!! Convert Measure to Calculated Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3751610#M146325</link>
    <description>&lt;P&gt;Hello Power BI community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need some urgent help in converting the following measure to a calculated column. The min purpose is that I can use this new column as a legend for my pie chart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Ranking SingleSelect = 
RANKX(ALLSELECTED('df_Search Order (First)'[Search Order (First)]), [Category_Occasion_SingleSelect%], , DESC, Dense)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/14361" target="_blank" rel="noopener"&gt;@MFelix&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/148838" target="_blank" rel="noopener"&gt;@amitchandak&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/19851" target="_blank" rel="noopener"&gt;@Ashish_Mathur&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2024 14:35:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-03-08T14:35:21Z</dc:date>
    <item>
      <title>URGENT!! Convert Measure to Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3751610#M146325</link>
      <description>&lt;P&gt;Hello Power BI community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need some urgent help in converting the following measure to a calculated column. The min purpose is that I can use this new column as a legend for my pie chart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Ranking SingleSelect = 
RANKX(ALLSELECTED('df_Search Order (First)'[Search Order (First)]), [Category_Occasion_SingleSelect%], , DESC, Dense)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/14361" target="_blank" rel="noopener"&gt;@MFelix&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/148838" target="_blank" rel="noopener"&gt;@amitchandak&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/19851" target="_blank" rel="noopener"&gt;@Ashish_Mathur&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 14:35:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3751610#M146325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-08T14:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT!! Convert Measure to Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3752854#M146400</link>
      <description>&lt;P&gt;This here is a forum where users help users, time permitting.&amp;nbsp; For urgent requests contact a Microsoft partner near you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2024 17:24:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3752854#M146400</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-09T17:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT!! Convert Measure to Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3752875#M146403</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try the following:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Ranking SingleSelect = 
RANKX(
    ALL('df_Search Order (First)'), 
    CALCULATE(SUM('df_Search Order (First)'[Category_Occasion_SingleSelect%])), 
    , 
    DESC, 
    Dense
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 09 Mar 2024 17:45:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3752875#M146403</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2024-03-09T17:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT!! Convert Measure to Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3754048#M146456</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your DAX, I used the following sample data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I'm using the following DAX expression in the calculated column for ranking:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Ranking SingleSelect =
RANKX (
    'df_Search Order (First)',
    [Category_Occasion_SingleSelect%],
    ,
    DESC,
    DENSE
)
&lt;/LI-CODE&gt;
&lt;P&gt;Here are the results:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-jianpengli%40microsoft.com%7Cd9552f18a0c94a7564f308dc188bf35e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638412236574903368%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=3jxUE%2BTNC8dS4DIhPphEB3NA%2BK94pwURGHu%2BXC4eezw%3D&amp;amp;reserved=0" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Jianpeng Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 05:57:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3754048#M146456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-11T05:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT!! Convert Measure to Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3754151#M146462</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping here!&lt;/P&gt;&lt;P&gt;But I'm getting this error here when I run this code. This might be because&amp;nbsp;[Category_Occasion_SingleSelect%] is a measure. Can there be another way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I'm trying to convert this into a column because I want to use this as a legend in my pie chart. But I cannot add a measure as a legend.&lt;/P&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;</description>
      <pubDate>Mon, 11 Mar 2024 06:44:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3754151#M146462</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-11T06:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT!! Convert Measure to Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3754155#M146463</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501067" data-lia-user-login="Sahir_Maharaj" class="lia-mention lia-mention-user"&gt;Sahir_Maharaj&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping here!&lt;/P&gt;&lt;P&gt;But I'm getting this error here when I run this code. This might be because&amp;nbsp;[Category_Occasion_SingleSelect%] is a measure. Can there be another way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I'm trying to convert this into a column because I want to use this as a legend in my pie chart. But I cannot add a measure as a legend.&lt;/P&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 06:45:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3754155#M146463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-11T06:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: URGENT!! Convert Measure to Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3754584#M146475</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your reply. Here's how I handle ranking with measure in calculated columns:&lt;BR /&gt;1. First of all, use the summarize function to summarize the measure, here I simply create a measure as shown in the following photos:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I use the following DAX to call this measure and generate a calculation table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table =
SUMMARIZE (
    'df_Search Order (First)',
    'df_Search Order (First)'[Search Order (First)],
    "result", [category_Occasion_%]
)
&lt;/LI-CODE&gt;
&lt;P&gt;Here are the results:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You need to replace [category_Occasion_%] with your measure.&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Create a connection for the two tables:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3.The following DAX is used for ranking in the original table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Ranking SingleSelect =
RANKX ( 'df_Search Order (First)', RELATED ( 'Table'[result] ),, DESC, SKIP )&lt;/LI-CODE&gt;
&lt;P&gt;Here are the results:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 09:19:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/URGENT-Convert-Measure-to-Calculated-Column/m-p/3754584#M146475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-11T09:19:50Z</dc:date>
    </item>
  </channel>
</rss>

