Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a table created by DAX codebelow
TableCompReversed = SUMMARIZECOLUMNS(CJI3[Material ];CJI3[ Object ];CJI3[CheckGroupMtrl];CJI3[Postg Date];FILTER(CJI3;CJI3[CheckGroupMtrl] = 0))
I would like to merge it with a table created by
let Source = Csv.Document(File.Contents("W:\ZINDICATORI.unl"),[Delimiter="|", Columns=38, Encoding=1252, QuoteStyle=QuoteStyle.None]),
The first table does not appear in the box below
how can I create the first file in a Query instead of a DAX espression in modeling.
Thanks
Solved! Go to Solution.
I have added CheckGroupMatrl2 to manage only the case 3. Look at the formula below.
Using or instead of and I get the right value according to DAX code in the CheckGroupMtrl (wich is the original column I have to trasform from the calculated column although I do not have a logical explanation of that, in DAX code work well and but in M only or works well)
#"Added Conditional Column1" = Table.AddColumn(#"Added Conditional Column", "CheckGroupMtrl2", each if [COOIS.FatherGroup] <> null or ([#"Material "] = null or [#"Material "] = "") then 3 else 99)
Then I replaced the formula in CheckGroupMtrl1 and as you can see it works well
#"Added Conditional Column" = Table.AddColumn(#"Renamed Columns", "CheckGroupMtrl1", each if Text.Trim([#"COOIS.FatherGroup"]) <> null and [#"Material "] <> null and Text.Trim([#"COOIS.FatherGroup"]) = [#"Material "] then 1 else if ([#"COOIS.FatherGroup"] <> null or ([#"Material "] = null or [#"Material "] = "")) then 3
At this point I believe we can consider close this issue.
Thanks for your support.
Regards
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |