Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
gpiero
Skilled Sharer
Skilled Sharer

How to merge query between a table created by modeling a a table created by Get Data

 

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

 

pict1.PNG

 

how can I create the first file in a Query instead of a DAX espression in modeling.

 

Thanks

If I can...
1 ACCEPTED SOLUTION

Hi @v-lili6-msft

 

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

 

pict3.PNG

 

 

#"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

If I can...

View solution in original post

14 REPLIES 14

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.