Forum Discussion
Value for mixed data
- 9 years ago
I found how to make that it's working. Maybe it's the same thing like you wrote me, but I'm glad that it's working well for me.
In Advanced Editor, "{{"Master Customer Name (Inc)", type text}" I replace "text type" by "general", same option for data type that you can find in Excel, but not in PBI.
So, when I pressed save, it's give me an error code, but at this moment I press on remove "changed type", and this is what's changing my data type in ANY, what I need actualy, it's same as general in Excel. So, I tested it, and it's show me now in my table all informations, even in filter, when I press now "Load More" it's show me all what I need.
Thanks a lot Anonymous
Can you please send me the query code?
Click on "Advanced Editor" and copy & paste the code.
let
Source = #"Report 1",
#"Added Index" = Table.AddIndexColumn(Source, "Row Number" ,1),
#"Kept Errors" = Table.SelectRowsWithErrors(#"Added Index", {"Master Customer Name (Inc)", "Master Customer Number (Inc)", "Incident Identifier (Inc)", "Last WO Number (Inc)", "Assigned To Identifier (Inc)", "Country Code (Inc)", "Incident Start Date Time TZ (Inc)", "Incident Start Date TZ", "Incident End Date Time TZ (Inc)", "Incident End Date TZ", "Problem Tier 1 Description (Inc)", "Problem Tier 2 Description (Inc)", "Problem Tier 3 Description (Inc)", "Problem Tier 4 Description (Inc)", "Resolution Tier 1 Description (Inc)", "Resolution Tier 2 Description (Inc)", "Site Postal Code (Inc)", "Store Branch Name (Inc)", "Total Activity Minutes (Inc)"}),
#"Reordered Columns" = Table.ReorderColumns(#"Kept Errors", {"Row Number", "Master Customer Name (Inc)", "Master Customer Number (Inc)", "Incident Identifier (Inc)", "Last WO Number (Inc)", "Assigned To Identifier (Inc)", "Country Code (Inc)", "Incident Start Date Time TZ (Inc)", "Incident Start Date TZ", "Incident End Date Time TZ (Inc)", "Incident End Date TZ", "Problem Tier 1 Description (Inc)", "Problem Tier 2 Description (Inc)", "Problem Tier 3 Description (Inc)", "Problem Tier 4 Description (Inc)", "Resolution Tier 1 Description (Inc)", "Resolution Tier 2 Description (Inc)", "Site Postal Code (Inc)", "Store Branch Name (Inc)", "Total Activity Minutes (Inc)"})
in
#"Reordered Columns"
- Anonymous9 years agoNot applicable
ok. that's the code of the error report.
I need in addition the code of the original "Report1".
- LuteceFalco9 years agoHelper II
Does it existe in PBI
- LuteceFalco9 years agoHelper II
Sorry for this,
let
Source = Excel.Workbook(File.Contents("..............................."), null, true),
#"Report 1_Sheet" = Source{[Item="Report 1",Kind="Sheet"]}[Data],
#"Promoted Headers" = Table.PromoteHeaders(#"Report 1_Sheet", [PromoteAllScalars=true]),
#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Master Customer Name (Inc)", type text}, {"Master Customer Number (Inc)", Int64.Type}, {"Incident Identifier (Inc)", Int64.Type}, {"Last WO Number (Inc)", type text}, {"Assigned To Identifier (Inc)", type text}, {"Country Code (Inc)", type text}, {"Incident Start Date Time TZ (Inc)", type datetime}, {"Incident Start Date TZ", type date}, {"Incident End Date Time TZ (Inc)", type datetime}, {"Incident End Date TZ", type date}, {"Problem Tier 1 Description (Inc)", type text}, {"Problem Tier 2 Description (Inc)", type text}, {"Problem Tier 3 Description (Inc)", type text}, {"Problem Tier 4 Description (Inc)", type text}, {"Resolution Tier 1 Description (Inc)", type text}, {"Resolution Tier 2 Description (Inc)", type text}, {"Site Postal Code (Inc)", Int64.Type}, {"Store Branch Name (Inc)", type text}, {"Total Activity Minutes (Inc)", Int64.Type}})
in
#"Changed Type" - Anonymous9 years agoNot applicable
allright
Change this piece of the code
#"Changed Type" =
Table.TransformColumnTypes(#"Promoted Headers",
{{"Master Customer Name (Inc)", type text},Spoiler{"Master Customer Number (Inc)", Int64.Type},to
{"Master Customer Number (Inc)", type text},
- LuteceFalco9 years agoHelper II
I found how to make that it's working. Maybe it's the same thing like you wrote me, but I'm glad that it's working well for me.
In Advanced Editor, "{{"Master Customer Name (Inc)", type text}" I replace "text type" by "general", same option for data type that you can find in Excel, but not in PBI.
So, when I pressed save, it's give me an error code, but at this moment I press on remove "changed type", and this is what's changing my data type in ANY, what I need actualy, it's same as general in Excel. So, I tested it, and it's show me now in my table all informations, even in filter, when I press now "Load More" it's show me all what I need.
Thanks a lot Anonymous