<?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: Column to toggle between single or multiple categories in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1310095#M22845</link>
    <description>&lt;P&gt;By the way, creating a measure - as vivran22 suggests - will be of no use to you in this regard. Secondly, this calculation should ideally be performed in Power Query since this piece of Power BI has been designed to efficiently deal with such problems through the M language. On top of that, if you do it in DAX, as I did above, the compression rate will not be optimal (but it might suffice). Please note that all preprocessing should be always performed in Power Query, not in DAX. DAX is a Data Analysis eXpressions language, not a data mashup language like M.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;The fact that something is doable does not necessarily mean it should be done.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Aug 2020 08:26:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-20T08:26:38Z</dc:date>
    <item>
      <title>Column to toggle between single or multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1305547#M22669</link>
      <description>&lt;P&gt;I want to create a column that allows me to toggle between emails associated with single or multiple clients (categories). I have a stacked column chart with the following fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Axis: 'Email'&lt;/P&gt;&lt;P&gt;Legend: 'Client'&lt;/P&gt;&lt;P&gt;Values: 'Request Count'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, the chart is plotting counts by 'Email' for all 'Clients' including those which just a single client.&lt;/P&gt;&lt;P&gt;Ideally, I'd like to filter to only the emails which have &lt;EM&gt;&lt;STRONG&gt;more than 1 client&lt;/STRONG&gt; &lt;/EM&gt;associated with them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is an example (all emails are encrypted). The emails highlighted yellow would remain, as they have counts for&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;multiple&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;clients&lt;EM&gt;.&amp;nbsp;&lt;/EM&gt;However, I'd like to &lt;STRONG&gt;&lt;EM&gt;filter out the emails with the red line&lt;/EM&gt;&lt;/STRONG&gt; through them, as they are associated with just a &lt;EM&gt;&lt;STRONG&gt;single&lt;/STRONG&gt; &lt;/EM&gt;client (single-color bars)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance in writing a DAX formula to achieve this filter would be much appreciated! Please let me know if you need me to provide any further details.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 23:16:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1305547#M22669</guid>
      <dc:creator>niko18033</dc:creator>
      <dc:date>2020-08-18T23:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Column to toggle between single or multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1305822#M22680</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="134398" data-lia-user-login="niko18033" class="lia-mention lia-mention-user"&gt;niko18033&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I request you to share the sample table structure from which you are plotting the visual. It will help in writing appropriate DAX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers!&lt;BR /&gt;Vivek&lt;BR /&gt;&lt;BR /&gt;Blog: &lt;A href="https://www.vivran.in/my-blog" target="_blank"&gt;vivran.in/my-blog&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/vivek-ranjan-063a1a17b/" target="_blank"&gt;Connect on LinkedIn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://twitter.com/imvivran" target="_blank"&gt;Follow on Twitter&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 02:41:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1305822#M22680</guid>
      <dc:creator>vivran22</dc:creator>
      <dc:date>2020-08-19T02:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Column to toggle between single or multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1305943#M22686</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="134398" data-lia-user-login="niko18033" class="lia-mention lia-mention-user"&gt;niko18033&lt;/a&gt; , Try measure like, Assumed you already have measure Request Count&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sumx(filter(summarize(Table, Table[Email],"_1",count(Table[Client]),"_1",[Request Count]),[_1]&amp;gt;1),[Request Count])&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;sumx(filter(summarize(Table, Table[Email],"_1",distinctcount(Table[Client]),"_1",[Request Count]),[_1]&amp;gt;1),[Request Count])&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 04:24:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1305943#M22686</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-19T04:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Column to toggle between single or multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1307018#M22722</link>
      <description>You have to have a dimension 'Emails' and one of the attributes must be the number of clients where the values would be 'Single' and 'Multiple'. You'll then place the EmailID on the axis and filter by one of the values. The chart will then show on the x-axis only the filtered emails. You can't achieve what you want through a measure.</description>
      <pubDate>Wed, 19 Aug 2020 10:35:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1307018#M22722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-19T10:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Column to toggle between single or multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1308091#M22757</link>
      <description>&lt;P&gt;Hi Vivek - Thanks for your quick reply. Below is a sample export of the data. The emails which are essentially duplicates in this table (have a row for more than one client) are the ones I want to keep.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request Count is a measure. = DISTINCTCOUNT(requests)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Email&lt;/TD&gt;&lt;TD&gt;Client&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Request Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;00539XAKOIOYVFPFPE@KNDUB.JAB&lt;/TD&gt;&lt;TD&gt;Client A&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt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;TD&gt;1628UUEBQ@ZRPTX.OIC&lt;/TD&gt;&lt;TD&gt;Client A&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;171YVA@FRTPW.YYW&lt;/TD&gt;&lt;TD&gt;Client A&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;178N369@APXQS.FUW&lt;/TD&gt;&lt;TD&gt;Client B&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;178N369@APXQS.FUW&lt;/TD&gt;&lt;TD&gt;Client A&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 15:48:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1308091#M22757</guid>
      <dc:creator>niko18033</dc:creator>
      <dc:date>2020-08-19T15:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Column to toggle between single or multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1308197#M22767</link>
      <description>As I said above, you have to add an attribute to your table that for each email will tell you whether it's a 'single' one or 'multiple' one. Then and only then will you be able to slice via this attribute and the x-axis of your visual will adjust accordingly.</description>
      <pubDate>Wed, 19 Aug 2020 16:22:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1308197#M22767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-19T16:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Column to toggle between single or multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1308277#M22774</link>
      <description>&lt;P&gt;Thanks for the follow-up,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;. What would be the best way to create such an attribute? Through Power Query Editor and doing a 'Group By' aggregation? Or a conditional column? I was thinking of just writing a DAX column, but am unsure how to define this.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 17:02:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1308277#M22774</guid>
      <dc:creator>niko18033</dc:creator>
      <dc:date>2020-08-19T17:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Column to toggle between single or multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1308285#M22776</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="134398" data-lia-user-login="niko18033" class="lia-mention lia-mention-user"&gt;niko18033&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try this as a measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Multiple Clients = 
//Create a summary table
VAR _StepTable = 
    SUMMARIZE(
        'Email Table',
        'Email Table'[Email],
        "Client Count", DISTINCTCOUNT('Email Table'[Client]),
        "Request Count", SUM('Email Table'[Request Count])
    )
//Filter out records with single client
VAR _Filter = 
    FILTER(_StepTable,
        [Client Count] &amp;gt; 1
    )

//Get the sum of request count for emails with multiple clients
VAR _SumOfRequest = 
    SUMX(_Filter,[Request Count])
RETURN
_SumOfRequest
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers!&lt;BR /&gt;Vivek&lt;BR /&gt;&lt;BR /&gt;If it helps, please mark it as a solution. Kudos would be a cherry on the top &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;If it doesn't, then please share a sample data along with the expected results (preferably an excel file and not an image)&lt;BR /&gt;&lt;BR /&gt;Blog: &lt;A href="https://www.vivran.in/my-blog" target="_blank" rel="noopener"&gt;vivran.in/my-blog&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/vivek-ranjan-063a1a17b/" target="_blank" rel="noopener"&gt;Connect on LinkedIn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://twitter.com/imvivran" target="_blank" rel="noopener"&gt;Follow on Twitter&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 17:05:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1308285#M22776</guid>
      <dc:creator>vivran22</dc:creator>
      <dc:date>2020-08-19T17:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Column to toggle between single or multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1308477#M22786</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="141768" data-lia-user-login="vivran22" class="lia-mention lia-mention-user"&gt;vivran22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Vivek. I tried that, but it seems to be extremely processor/RAM intensive. It ran for almost an hour but failed due a lack of system resources. I tried a workaround, by creating a column rather than a measure. This way, the user also has the option whethere or not to filter out the "single" client emails. I'm trying to do a column that yields two values: "Single" or "Multiple", referring to the number of clients associated with the email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I'm getting this error. Am I missing something?&lt;/P&gt;&lt;P&gt;"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Multiple Clients? = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR StepTable = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Table1',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Table1[Email],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Client Count", DISTINCTCOUNT('Table1'[CLIENT_NAME]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Request Count", [Request Count])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//Filter out records with single client&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(FILTER(StepTable, [Client Count] &amp;gt; 1), "Multiple", "Single")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Aug 2020 18:44:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1308477#M22786</guid>
      <dc:creator>niko18033</dc:creator>
      <dc:date>2020-08-19T18:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Column to toggle between single or multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1309342#M22822</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="134398" data-lia-user-login="niko18033" class="lia-mention lia-mention-user"&gt;niko18033&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is your data source, Excel, SQL? And how many records in total (estimate)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers!&lt;BR /&gt;Vivek&lt;BR /&gt;&lt;BR /&gt;Blog: &lt;A href="https://www.vivran.in/my-blog" target="_blank"&gt;vivran.in/my-blog&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/vivek-ranjan-063a1a17b/" target="_blank"&gt;Connect on LinkedIn&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://twitter.com/imvivran" target="_blank"&gt;Follow on Twitter&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 02:53:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1309342#M22822</guid>
      <dc:creator>vivran22</dc:creator>
      <dc:date>2020-08-20T02:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Column to toggle between single or multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1310074#M22843</link>
      <description>&lt;LI-CODE lang="csharp"&gt;[Email Type] = // calculated column
var __email = T[Email] // T is the table
var __howMany =
    countrows(
        filter(
            T,
            T[Email] = __email
        )
    )
return
    If( __howMany &amp;gt; 1, "Multiple", "Single" )&lt;/LI-CODE&gt;&lt;P&gt;Here is your attribute...&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 08:18:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1310074#M22843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-20T08:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Column to toggle between single or multiple categories</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1310095#M22845</link>
      <description>&lt;P&gt;By the way, creating a measure - as vivran22 suggests - will be of no use to you in this regard. Secondly, this calculation should ideally be performed in Power Query since this piece of Power BI has been designed to efficiently deal with such problems through the M language. On top of that, if you do it in DAX, as I did above, the compression rate will not be optimal (but it might suffice). Please note that all preprocessing should be always performed in Power Query, not in DAX. DAX is a Data Analysis eXpressions language, not a data mashup language like M.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;The fact that something is doable does not necessarily mean it should be done.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 08:26:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-to-toggle-between-single-or-multiple-categories/m-p/1310095#M22845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-20T08:26:38Z</dc:date>
    </item>
  </channel>
</rss>

