<?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: Using a Measure to Combine Multiple Columns into one Card in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-Combine-Multiple-Columns-into-one-Card/m-p/4350325#M172767</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="906907" data-lia-user-login="Previsible" class="lia-mention lia-mention-user"&gt;Previsible&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before getting into specifics of the DAX, just checking the logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The current&amp;nbsp;&lt;STRONG&gt;ClientCountYesAndNASpecific&lt;/STRONG&gt; measure effectively counts rows where this condition is true:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;'Deskside QA'[Didtheresourcefollow-upwit] IN {"Yes", "NA"}
|| 'Deskside QA'[Didthetechnicianpracticethe3Stri] IN {"Yes", "NA"}&lt;/LI-CODE&gt;
&lt;P&gt;i.e. either of the columns&amp;nbsp; &lt;STRONG&gt;Didtheresourcefollow-upwit&amp;nbsp;&lt;/STRONG&gt;or &lt;STRONG&gt;Didthetechnicianpracticethe3Stri&lt;/STRONG&gt; is equal to "Yes" or "NA".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But from your screenshot,&amp;nbsp;&lt;STRONG&gt;Didthetechnicianpracticethe3Stri&lt;/STRONG&gt; = "NA" on all 165 rows, so this condition is true for all 165 rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this what you intended?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your example at the end, the expected result of 149/165 = 90.3% looks to be based on the values in column &lt;STRONG&gt;Didtheresourcefollow-upwit&lt;/STRONG&gt; alone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jan 2025 22:26:43 GMT</pubDate>
    <dc:creator>OwenAuger</dc:creator>
    <dc:date>2025-01-03T22:26:43Z</dc:date>
    <item>
      <title>Using a Measure to Combine Multiple Columns into one Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-Combine-Multiple-Columns-into-one-Card/m-p/4350262#M172762</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to build a dashboard that would require me to combine multiple columns of data to provide more detailed breakdowns of each section.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Each column has only 3 expected outputs as this is stored in a sharepoint list, and the type of column is "Choice" meaning they can only choose "Yes" "No" or "NA"&lt;BR /&gt;&lt;BR /&gt;For this report "Yes" and "NA" are considered a PASS and "No" is considered a FAIL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To do this, I took the approach of making 3 Measurements:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ClientCountYesAndNASpecific = 
        SUMX(
        'Deskside QA',
        IF(
                'Deskside QA'[Didtheresourcefollow-upwit] IN {"Yes", "NA"} || 
                'Deskside QA'[Didthetechnicianpracticethe3Stri] IN {"Yes", "NA"},
            1,
            0
        )
    )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;ClientTotalSpecificResponses = 
    SUMX(
        'Deskside QA',
        IF(
            NOT(ISBLANK('Deskside QA'[Didtheresourcefollow-upwit])) || 
            NOT(ISBLANK('Deskside QA'[Didthetechnicianpracticethe3Stri])),
            1,
            0
        )
    )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;ClientPercentage = DIVIDE([ClientCountYesAndNASpecific], [ClientTotalSpecificResponses], 0) * 100&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In theory,&amp;nbsp;&lt;STRONG&gt;ClientCountYesAndNASpecific&lt;/STRONG&gt; would only count "Yes" and "NA" responses,&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;ClientTotalSpecificResponses&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;would count all rows, and &lt;/SPAN&gt;&lt;STRONG&gt;ClientPercentage&lt;/STRONG&gt;&lt;SPAN&gt; would calculate the percentage of "Yes" and "NA" in comparison to "No"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I put this into practice however I get unexpected results:&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;These 2 tables are the Column Source Counts:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;165 lines total&amp;nbsp;&lt;BR /&gt;No = 16&lt;BR /&gt;All Lines =165&lt;BR /&gt;Meaning the expected output is 90.3%&lt;BR /&gt;&lt;BR /&gt;Instead, this is what I see:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does anyone know where I'm messing up on this? I have tried a few different ways around this but end up right back where I started.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 22:51:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-Combine-Multiple-Columns-into-one-Card/m-p/4350262#M172762</guid>
      <dc:creator>Previsible</dc:creator>
      <dc:date>2025-01-06T22:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Measure to Combine Multiple Columns into one Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-Combine-Multiple-Columns-into-one-Card/m-p/4350325#M172767</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="906907" data-lia-user-login="Previsible" class="lia-mention lia-mention-user"&gt;Previsible&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before getting into specifics of the DAX, just checking the logic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The current&amp;nbsp;&lt;STRONG&gt;ClientCountYesAndNASpecific&lt;/STRONG&gt; measure effectively counts rows where this condition is true:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;'Deskside QA'[Didtheresourcefollow-upwit] IN {"Yes", "NA"}
|| 'Deskside QA'[Didthetechnicianpracticethe3Stri] IN {"Yes", "NA"}&lt;/LI-CODE&gt;
&lt;P&gt;i.e. either of the columns&amp;nbsp; &lt;STRONG&gt;Didtheresourcefollow-upwit&amp;nbsp;&lt;/STRONG&gt;or &lt;STRONG&gt;Didthetechnicianpracticethe3Stri&lt;/STRONG&gt; is equal to "Yes" or "NA".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But from your screenshot,&amp;nbsp;&lt;STRONG&gt;Didthetechnicianpracticethe3Stri&lt;/STRONG&gt; = "NA" on all 165 rows, so this condition is true for all 165 rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this what you intended?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your example at the end, the expected result of 149/165 = 90.3% looks to be based on the values in column &lt;STRONG&gt;Didtheresourcefollow-upwit&lt;/STRONG&gt; alone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 22:26:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-Combine-Multiple-Columns-into-one-Card/m-p/4350325#M172767</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2025-01-03T22:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Measure to Combine Multiple Columns into one Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-Combine-Multiple-Columns-into-one-Card/m-p/4352135#M172826</link>
      <description>&lt;P&gt;That is what I intended. The Column&amp;nbsp;&lt;STRONG&gt;Didthetechnicianpracticethe3Stri&amp;nbsp;&lt;/STRONG&gt;is supposed to have all answers NA, this is a new metric to this report and all historical entries received a "pass" by being marked as NA. The hope would be however that&amp;nbsp;&lt;STRONG&gt;ClientPercentage&amp;nbsp;&lt;/STRONG&gt;pulls information from both columns as opposed to the one alone.&lt;BR /&gt;&lt;BR /&gt;In testing your theory that it is only pulling the data from one list I added some "NA" and "Yes" data to the SharePoint list and it still shows 100%:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 20:57:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-Combine-Multiple-Columns-into-one-Card/m-p/4352135#M172826</guid>
      <dc:creator>Previsible</dc:creator>
      <dc:date>2025-01-06T20:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Measure to Combine Multiple Columns into one Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-Combine-Multiple-Columns-into-one-Card/m-p/4352495#M172839</link>
      <description>&lt;P&gt;&lt;SPAN&gt;It looks like the discussion has moved to Reddit so I'll let the it continue there.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 01:32:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-Combine-Multiple-Columns-into-one-Card/m-p/4352495#M172839</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2025-01-07T01:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Measure to Combine Multiple Columns into one Card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-Combine-Multiple-Columns-into-one-Card/m-p/4353822#M172862</link>
      <description>&lt;P&gt;For anyone who comes across this post seeking the answer, it was provided by a reddit user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead of the OR Statement in my DAX || I needed to use an AND statement &amp;amp;&amp;amp;&lt;BR /&gt;&lt;BR /&gt;IE:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ClientTotalSpecificResponses = 
    SUMX(
        'Deskside QA',
        IF(
            NOT(ISBLANK('Deskside QA'[Didtheresourcefollow-upwit])) &amp;amp;&amp;amp;
            NOT(ISBLANK('Deskside QA'[Didthetechnicianpracticethe3Stri])),
            1,
            0
        )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Jan 2025 17:12:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-Combine-Multiple-Columns-into-one-Card/m-p/4353822#M172862</guid>
      <dc:creator>Previsible</dc:creator>
      <dc:date>2025-01-07T17:12:11Z</dc:date>
    </item>
  </channel>
</rss>

