<?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 IF statement as calculated column and use this as filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1470427#M27905</link>
    <description>&lt;P&gt;CountRows(Filter(all(MonthlyReport[ID],MonthlyReport[Date]),Format(MonthlyReport[Date],"yyyymm")=Format(Customer[Date],"yyyymm")&amp;amp;&amp;amp;MonthlyReport[ID]=Customer[ID]))&amp;gt;0&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 00:42:00 GMT</pubDate>
    <dc:creator>wdx223_Daniel</dc:creator>
    <dc:date>2020-11-03T00:42:00Z</dc:date>
    <item>
      <title>using IF statement as calculated column and use this as filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1469470#M27881</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really need assistance in solving a problem in power bi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a calculated column using if statement. I have a table with customer ids and a monthly report from 2019 to present.&lt;/P&gt;&lt;P&gt;I want to identify which unique customer ids have transactions in each monthly report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Report Date&lt;/TD&gt;&lt;TD&gt;Loyalty Card Number&lt;/TD&gt;&lt;TD&gt;Liters&lt;/TD&gt;&lt;TD&gt;Result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt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gt;14&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I want to add the value "True" for the customer ids that will pass the condition same with result on the table above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please confirm if this is possible or there are other ways to create this result, perhaps in power query?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really hoping someone can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:02:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1469470#M27881</guid>
      <dc:creator>AREO-07</dc:creator>
      <dc:date>2020-11-02T13:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: using IF statement as calculated column and use this as filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1469569#M27883</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251373" data-lia-user-login="AREO-07" class="lia-mention lia-mention-user"&gt;AREO-07&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Not clear enough, could you explain more on how the logic should be applied to mark as TRUE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;If my answer was helpful, please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt; to help the other members find it&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Click on the &lt;STRONG&gt;Thumbs-Up icon &lt;/STRONG&gt;if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;&lt;FONT color="blue"&gt;YouTube&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp; &lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;&lt;FONT color="blue"&gt;LinkedIn&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:56:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1469569#M27883</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-11-02T13:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: using IF statement as calculated column and use this as filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1469613#M27885</link>
      <description>&lt;P&gt;Hi&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251373" data-lia-user-login="AREO-07" class="lia-mention lia-mention-user"&gt;AREO-07&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mean they have to have data in all the dates present in the table. If so, none of the IDs shown complies.&lt;/P&gt;
&lt;P&gt;1. Place Loyalty Card in a table visual&lt;/P&gt;
&lt;P&gt;2. Create this measure and&amp;nbsp; place it in the visual&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR allDates_ =
    ALL ( Table1[Report Date] )
VAR currentIDDates_ =
    DISTINCT ( Table1[Report Date] )
VAR missingDates_ =
    COUNTROWS ( EXCEPT ( allDates_, currentIDDates_ ) )
RETURN
    IF ( missingDates_ = 0, TRUE (), FALSE () )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be better to have an additional table with the dates so that you can use that as reference for the period in which you want the cards to be active&lt;/P&gt;
&lt;P&gt;This can also be implemented in Power Query&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 09:53:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1469613#M27885</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-11-03T09:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: using IF statement as calculated column and use this as filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1470427#M27905</link>
      <description>&lt;P&gt;CountRows(Filter(all(MonthlyReport[ID],MonthlyReport[Date]),Format(MonthlyReport[Date],"yyyymm")=Format(Customer[Date],"yyyymm")&amp;amp;&amp;amp;MonthlyReport[ID]=Customer[ID]))&amp;gt;0&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 00:42:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1470427#M27905</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2020-11-03T00:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: using IF statement as calculated column and use this as filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1471291#M27928</link>
      <description>&lt;P&gt;I want to mark "True" if that unique card number shows in every monthly report.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 08:59:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1471291#M27928</guid>
      <dc:creator>AREO-07</dc:creator>
      <dc:date>2020-11-03T08:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: using IF statement as calculated column and use this as filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1471312#M27929</link>
      <description>&lt;P&gt;Maybe my logic is incorrect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what i need is to identify which card numbers have transactions every monthly report and group them so that i could create a graph that shows how frequent they are transacting each month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See my table below.&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>Tue, 03 Nov 2020 09:07:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1471312#M27929</guid>
      <dc:creator>AREO-07</dc:creator>
      <dc:date>2020-11-03T09:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: using IF statement as calculated column and use this as filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1484211#M28370</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92178" data-lia-user-login="AlB" class="lia-mention lia-mention-user"&gt;AlB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a dax measure but i am having issues with the calculate function what could be the proper workaround here&amp;nbsp;&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;Hoping for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 07:41:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/using-IF-statement-as-calculated-column-and-use-this-as-filter/m-p/1484211#M28370</guid>
      <dc:creator>AREO-07</dc:creator>
      <dc:date>2020-11-10T07:41:25Z</dc:date>
    </item>
  </channel>
</rss>

