<?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: Multiple validation with multiple print info in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4347860#M172695</link>
    <description>&lt;P&gt;Hi, happy new year, thanks!... All the validation are in DAX.. I am not complete familiar with the code that Power Query (M code, I think) but if you have a course that you could recommend me. Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jan 2025 23:39:52 GMT</pubDate>
    <dc:creator>CatalinaMur</dc:creator>
    <dc:date>2025-01-01T23:39:52Z</dc:date>
    <item>
      <title>Multiple validation with multiple print info</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4345602#M172569</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Could you please help me. I have a Power BI report doing multiple validation, I created a column for each validation (more than 10) with the final result 1 or 0 (True or False if you will)&lt;/P&gt;&lt;P&gt;here is an example of the structure of the data:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Validation 1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp;Validation 2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp;Validation 3&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;001&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;002&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;003&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I would like to print all with 1, because each validation means someting is missing. I was thinking in SWICH but this is not a good one or maybe it is something that I need to consider?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2024 20:09:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4345602#M172569</guid>
      <dc:creator>CatalinaMur</dc:creator>
      <dc:date>2024-12-29T20:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple validation with multiple print info</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4345630#M172572</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="906575" data-lia-user-login="CatalinaMur" class="lia-mention lia-mention-user"&gt;CatalinaMur&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant exactly understand what you mean, do you want to print validations which are 1 for each ID or you just want o prind ID's that have all valiadtion passed?!&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2024 22:42:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4345630#M172572</guid>
      <dc:creator>Selva-Salimi</dc:creator>
      <dc:date>2024-12-29T22:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple validation with multiple print info</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4345633#M172573</link>
      <description>&lt;P&gt;Thanks to reply. I would like to print all the true in a summary column, example:&lt;/P&gt;&lt;P&gt;SWICH( TRUE(), Validation 1 = 1, "Missing financial info",&amp;nbsp;Validation 2 = 1, "Dates are not align"........ )&lt;/P&gt;&lt;P&gt;I know SWICH prints the first true validation... I would like to have something similar to WHILE or FOR.&lt;/P&gt;&lt;P&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2024 22:56:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4345633#M172573</guid>
      <dc:creator>CatalinaMur</dc:creator>
      <dc:date>2024-12-29T22:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple validation with multiple print info</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4345644#M172574</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="906575" data-lia-user-login="CatalinaMur" class="lia-mention lia-mention-user"&gt;CatalinaMur&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then, One of the easiest solutions that came to my mind is to unpivot your table as follows and then create a code column (which is created by concatenation of value and validation column) as follows:&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;then you need to create a table based on the description of each validation as follows:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(we need column named Code to be able to craete a relationship between description for those who are "1", So the code in your second table should always be "ValidationX_1").&lt;/P&gt;&lt;P&gt;Create a relationship between two "code" columns in this two table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by doing this you can print each description for each ID, based on it's value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post helps, then I would appreciate a thumbs up&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;and&amp;nbsp;&lt;STRONG&gt;mark it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 00:19:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4345644#M172574</guid>
      <dc:creator>Selva-Salimi</dc:creator>
      <dc:date>2024-12-30T00:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple validation with multiple print info</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4346769#M172639</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="906575" data-lia-user-login="CatalinaMur" class="lia-mention lia-mention-user"&gt;CatalinaMur&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Agree with&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="785783" data-lia-user-login="Selva-Salimi" class="lia-mention lia-mention-user"&gt;Selva-Salimi&lt;/a&gt;&amp;nbsp;, I think only unpivot can meet your needs, but your post is posted in the DAX forum, and DAX may not be able to implement this step easily. You need to use &lt;STRONG&gt;Power Query&lt;/STRONG&gt; to achieve:&lt;BR /&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjAwVNJRgmEDpVgdkJgRkpghVMwYLA/BQLFYAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [ID = _t, #"Validation 1" = _t, #"Validation 2" = _t, #"Validation 3" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"ID", type text}, {"Validation 1", Int64.Type}, {"Validation 2", Int64.Type}, {"Validation 3", Int64.Type}}),
    #"Unpivoted Only Selected Columns" = Table.Unpivot(#"Changed Type", {"Validation 1", "Validation 2", "Validation 3"}, "Attribute", "Value"),
    #"Added Custom" = Table.AddColumn(#"Unpivoted Only Selected Columns", "Custom", each if [Attribute] = "Validation 1" and [Value] = 1 then "Missing financial info" else if [Attribute] = "Validation 2" and [Value] = 1 then "Dates are not align" else if [Attribute] = "Validation 3" and [Value] = 1 then "other" else null),
    #"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"Value"}),
    #"Pivoted Column" = Table.Pivot(#"Removed Columns", List.Distinct(#"Removed Columns"[Attribute]), "Attribute", "Custom")
in
    #"Pivoted Column"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Just put all of the M code into the Advanced Editor:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dino Tao&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 02:37:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4346769#M172639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-31T02:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple validation with multiple print info</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4347221#M172653</link>
      <description>&lt;P&gt;I agree with&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="785783" data-lia-user-login="Selva-Salimi" class="lia-mention lia-mention-user"&gt;Selva-Salimi&lt;/a&gt;&amp;nbsp; also&lt;BR /&gt;This is a Power query task.. No DAX.. Simply unpivot the data and create condition column in Power query.. Just like&amp;nbsp;v-junyant-msft&amp;nbsp; did. You dont need any extra table.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;sanalytics&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 12:33:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4347221#M172653</guid>
      <dc:creator>sanalytics</dc:creator>
      <dc:date>2024-12-31T12:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple validation with multiple print info</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4347628#M172666</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="906575" data-lia-user-login="CatalinaMur" class="lia-mention lia-mention-user"&gt;CatalinaMur&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a New Column:&lt;/P&gt;&lt;P&gt;Add a calculated column in Power BI that checks for any 1 in your validation columns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AnyValidationMissing = 
IF(
    'YourTable'[Validation 1] + 
    'YourTable'[Validation 2] + 
    'YourTable'[Validation 3] &amp;gt; 0,
    1,
    0
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filter Your Visual:&lt;/P&gt;&lt;P&gt;Add the AnyValidationMissing column to the Filters pane and set it to show only rows where AnyValidationMissing = 1.&lt;/P&gt;&lt;P&gt;This will ensure that your visual only shows rows where any validation failed (1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution, this will help others!&lt;/STRONG&gt;&lt;BR /&gt;If my response(s) assisted you in any way, don't forget to drop me a "&lt;STRONG&gt;Kudos&lt;/STRONG&gt;" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Poojara&lt;BR /&gt;Data Analyst | MSBI Developer | Power BI Consultant&lt;BR /&gt;&lt;STRONG&gt;Consider Subscribing my YouTube for Beginners/Advance Concepts:&lt;/STRONG&gt; &lt;A href="https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS" target="_self"&gt;https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS&lt;/A&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jan 2025 07:22:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4347628#M172666</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2025-01-01T07:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple validation with multiple print info</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4347860#M172695</link>
      <description>&lt;P&gt;Hi, happy new year, thanks!... All the validation are in DAX.. I am not complete familiar with the code that Power Query (M code, I think) but if you have a course that you could recommend me. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jan 2025 23:39:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4347860#M172695</guid>
      <dc:creator>CatalinaMur</dc:creator>
      <dc:date>2025-01-01T23:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple validation with multiple print info</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4347862#M172696</link>
      <description>&lt;P&gt;Hi, thanks, I understand what you all agree, unpivot is a good way to summarize info... But these columns are with DAX formulas with the final result 1 or 0. I just want to try to find a way to summarize more (in power bi) to include in an email with power automate&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jan 2025 23:46:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4347862#M172696</guid>
      <dc:creator>CatalinaMur</dc:creator>
      <dc:date>2025-01-01T23:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple validation with multiple print info</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4348597#M172716</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="906575" data-lia-user-login="CatalinaMur" class="lia-mention lia-mention-user"&gt;CatalinaMur&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;If your all the columns are calculated column and you are bound to create those conditions in DAX then create a calculated table.&lt;BR /&gt;You can use below code&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;output = 
VAR _1 = 
ADDCOLUMNS(
SUMMARIZE( 'Table', 'Table'[ID],'Table'[Validation 1] ),
"ColName","Validation 1"
)

VAR _2 = 
ADDCOLUMNS(
SUMMARIZE( 'Table', 'Table'[ID],'Table'[ Validation 2] ),
"ColName","Validation 2"
)
VAR _3 = 
ADDCOLUMNS(
SUMMARIZE( 'Table', 'Table'[ID],'Table'[ Validation 3] ),
"ColName","Validation 3"
)
VAR _tbl = 
SELECTCOLUMNS(
UNION(
	_1,_2,_3 
),"Id",[ID],"Flag",[Validation 1],"ColName",[ColName]
)
VAR _condition = 
ADDCOLUMNS(
	_tbl,"@Condition",
IF(
	[ColName] = "Validation 1" &amp;amp;&amp;amp; [Flag] = 1 ,
	"Missing financial info",
 IF(
[ColName] = "Validation 2" &amp;amp;&amp;amp; [Flag] = 1,
"Data are not align",
IF(
[ColName] = "Validation 3" &amp;amp;&amp;amp; [Flag] = 1,
"other"
) ) ))
VAR _Result = 
ADDCOLUMNS(
 SUMMARIZE(
	'Table','Table'[ID]
 ),"Validation 1",
 MAXX(
	FILTER(
		_condition,[ID] = 'Table'[ID] &amp;amp;&amp;amp;
		[ColName] = "Validation 1"
	),[@Condition]
 ), "validation 2",
  MAXX(
	FILTER(
		_condition,[ID] = 'Table'[ID] &amp;amp;&amp;amp;
		[ColName] = "Validation 2"
	),[@Condition]
  ),
  "Validation 3",
   MAXX(
	FILTER(
		_condition,[ID] = 'Table'[ID] &amp;amp;&amp;amp;
		[ColName] = "Validation 3"
	),[@Condition]
  )
  )

	
RETURN
_Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below screenshot&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Attaching pbix file for your reference&lt;/P&gt;&lt;P&gt;&lt;A href="https://we.tl/t-YZiZIi2yji" target="_blank"&gt;https://we.tl/t-YZiZIi2yji&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sanalytics&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 15:24:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-validation-with-multiple-print-info/m-p/4348597#M172716</guid>
      <dc:creator>sanalytics</dc:creator>
      <dc:date>2025-01-02T15:24:15Z</dc:date>
    </item>
  </channel>
</rss>

