PQ : New column in source table not appearing in dataset

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,089
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all..
I have built a powerBI dashboard with data source from google sheet. I have add new column into my original data source.
when i refresh in power bi, the new added column not shown..
i have edit query then refresh..& refresh data source but still now show the new column/field
here complete code
Power Query:
let
    Source = Excel.Workbook(Web.Contents("https://docs.google.com/spreadsheets/d/e/2PACX-1vQOl6mdEYe_0j2cJRkmWlWo_3yMoaTupveedRY55Xx_sSqQEPLkxVQb5YU6sPrO02LiD3aKngN8GwZp/pub?output=xlsx"), null, true),
    #"PNBP BMN (2a13)_Sheet" = Source{[Item="PNBP BMN (2a13)",Kind="Sheet"]}[Data],
    #"Promoted Headers" = Table.PromoteHeaders(#"PNBP BMN (2a13)_Sheet", [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"IKU PERSENTASE PENERIMAAN NEGARA DARI PENGELOLAAN KN DAN LELANG#(lf)(KOMPONEN : PNBP ASET)", type any}, {"Column2", type text}, {"Column3", type any}, {"Column4", type any}, {"Column5", type any}, {"Column6", type any}, {"Column7", type any}, {"Column8", type any}, {"Column9", type any}, {"Column10", type any}, {"Column11", type any}, {"Column12", type any}, {"Column13", type any}, {"Column14", type any}, {"Column15", type any}, {"Column16", type any}, {"Column17", type text}, {"Column18", type any}, {"Column19", type text}, {"Column20", type text}}),
    #"Removed Blank Rows" = Table.SelectRows(#"Changed Type", each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null}))),
    #"Removed Blank Rows1" = Table.SelectRows(#"Removed Blank Rows", each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null}))),
    #"Removed Columns" = Table.RemoveColumns(#"Removed Blank Rows1",{"IKU PERSENTASE PENERIMAAN NEGARA DARI PENGELOLAAN KN DAN LELANG#(lf)(KOMPONEN : PNBP ASET)"}),
    #"Removed Blank Rows2" = Table.SelectRows(#"Removed Columns", each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null}))),
    #"Promoted Headers1" = Table.PromoteHeaders(#"Removed Blank Rows2", [PromoteAllScalars=true]),
    #"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers1",{{"Unit", type text}, {"Raw Data Tahun 2022", type any}, {"Raw Data Target Q3 (60%)", type any}, {"Raw Data Target s.d. September 2022 (60%)", type any}, {"Realisasi  s.d. Maret 2022", type number}, {"Realisasi  s.d. April 2022", type number}, {"Realisasi  s.d. Mei 2022", Int64.Type}, {"Realisasi  s.d. Juni 2022", type number}, {"Realisasi  s.d. Juli 2022", Int64.Type}, {"Realisasi s.d. September 2022", type any}, {"% Realisasi s.d.September 2022", type any}, {"Indeks Capaian s.d. September 2022", type any}, {"Indeks Capaian Tahunan", type any}, {"Proyeksi Realisasi s.d. Triwulan IV 2022", type any}, {"Indeks Capaian Proyeksi Realisasi s.d. Triwulan IV 2022", type any}, {"Keterangan Proyeksi", type text}, {"Penyebab Capaian s.d Mei Belum Tercapai#(lf)(wajib diiisi untuk yang belum tercapai)", type any}, {"Rencana Aksi#(lf)(wajib diiisi untuk yang belum tercapai)", type text}, {"Tindakan Yang Telah Dilaksanakan#(lf)(wajib diiisi untuk yang belum tercapai)", type text}}),
    #"Changed Type2" = Table.TransformColumnTypes(#"Changed Type1",{{"Realisasi s.d. September 2022", Int64.Type}, {"Realisasi  s.d. Juli 2022", Int64.Type}, {"Realisasi  s.d. Juni 2022", Int64.Type}, {"Realisasi  s.d. Mei 2022", Int64.Type}, {"Realisasi  s.d. April 2022", Int64.Type}, {"Realisasi  s.d. Maret 2022", Int64.Type}, {"Raw Data Target s.d. September 2022 (60%)", Int64.Type}, {"Raw Data Target Q3 (60%)", Int64.Type}, {"Raw Data Tahun 2022", Int64.Type}, {"% Realisasi s.d.September 2022", Percentage.Type}, {"Indeks Capaian s.d. September 2022", Percentage.Type}, {"Indeks Capaian Tahunan", Percentage.Type}, {"Proyeksi Realisasi s.d. Triwulan IV 2022", Int64.Type}, {"Indeks Capaian Proyeksi Realisasi s.d. Triwulan IV 2022", Percentage.Type}}),
    #"Removed Alternate Rows" = Table.AlternateRows(#"Changed Type2",6,8,6),
    #"Replaced Value" = Table.ReplaceValue(#"Removed Alternate Rows","TOTAL KANWIL","Total Kanwil",Replacer.ReplaceValue,{"Unit"}),
    #"Removed Other Columns" = Table.SelectColumns(#"Replaced Value",{"Unit", "Raw Data Tahun 2022", "Raw Data Target Q3 (60%)", "Raw Data Target s.d. September 2022 (60%)", "Realisasi  s.d. Maret 2022", "Realisasi  s.d. April 2022", "Realisasi  s.d. Mei 2022", "Realisasi  s.d. Juni 2022", "Realisasi  s.d. Juli 2022", "Realisasi s.d. September 2022", "% Realisasi s.d.September 2022", "Indeks Capaian s.d. September 2022", "Indeks Capaian Tahunan", "Proyeksi Realisasi s.d. Triwulan IV 2022", "Indeks Capaian Proyeksi Realisasi s.d. Triwulan IV 2022", "Keterangan Proyeksi", "Penyebab Capaian s.d Mei Belum Tercapai#(lf)(wajib diiisi untuk yang belum tercapai)", "Rencana Aksi#(lf)(wajib diiisi untuk yang belum tercapai)", "Tindakan Yang Telah Dilaksanakan#(lf)(wajib diiisi untuk yang belum tercapai)"}),
    #"Duplicated Column" = Table.DuplicateColumn(#"Removed Other Columns", "Realisasi s.d. September 2022", "Realisasi s.d. September 2022 - Copy"),
    #"Replaced Value1" = Table.ReplaceValue(#"Duplicated Column",3,null,Replacer.ReplaceValue,{"Realisasi s.d. September 2022 - Copy"}),
    #"Removed Columns1" = Table.RemoveColumns(#"Replaced Value1",{"Realisasi s.d. September 2022 - Copy"}),
    #"Duplicated Column1" = Table.DuplicateColumn(#"Removed Columns1", "Rencana Aksi#(lf)(wajib diiisi untuk yang belum tercapai)", "Rencana Aksi#(lf)(wajib diiisi untuk yang belum tercapai) - Copy"),
    #"Changed Type3" = Table.TransformColumnTypes(#"Duplicated Column1",{{"Rencana Aksi#(lf)(wajib diiisi untuk yang belum tercapai) - Copy", Int64.Type}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type3",{{"Rencana Aksi#(lf)(wajib diiisi untuk yang belum tercapai) - Copy", "Realisasi s.d. Januari 2022"}}),
    #"Duplicated Column2" = Table.DuplicateColumn(#"Renamed Columns", "Realisasi s.d. Januari 2022", "Realisasi s.d. Januari 2022 - Copy"),
    #"Duplicated Column3" = Table.DuplicateColumn(#"Duplicated Column2", "Realisasi s.d. Januari 2022 - Copy", "Realisasi s.d. Januari 2022 - Copy - Copy"),
    #"Duplicated Column4" = Table.DuplicateColumn(#"Duplicated Column3", "Realisasi s.d. Januari 2022 - Copy", "Realisasi s.d. Januari 2022 - Copy - Copy.1"),
    #"Renamed Columns1" = Table.RenameColumns(#"Duplicated Column4",{{"Realisasi s.d. Januari 2022 - Copy", "Realisasi s.d. Februari 2022"}, {"Realisasi s.d. Januari 2022 - Copy - Copy", "Realisasi s.d. Agustus 2022"}, {"Realisasi s.d. Januari 2022 - Copy - Copy.1", "Realisasi s.d. Oktober 2022"}}),
    #"Duplicated Column5" = Table.DuplicateColumn(#"Renamed Columns1", "Realisasi s.d. Oktober 2022", "Realisasi s.d. Oktober 2022 - Copy"),
    #"Duplicated Column6" = Table.DuplicateColumn(#"Duplicated Column5", "Realisasi s.d. Oktober 2022 - Copy", "Realisasi s.d. Oktober 2022 - Copy - Copy"),
    #"Renamed Columns2" = Table.RenameColumns(#"Duplicated Column6",{{"Realisasi s.d. Oktober 2022 - Copy", "Realisasi s.d. November 2022"}, {"Realisasi s.d. Oktober 2022 - Copy - Copy", "Realisasi s.d. Desember 2022"}}),
    #"Reordered Columns" = Table.ReorderColumns(#"Renamed Columns2",{"Unit", "Raw Data Tahun 2022", "Raw Data Target Q3 (60%)", "Raw Data Target s.d. September 2022 (60%)", "Realisasi  s.d. Maret 2022", "Realisasi  s.d. April 2022", "Realisasi  s.d. Mei 2022", "Realisasi  s.d. Juni 2022", "Realisasi  s.d. Juli 2022", "Realisasi s.d. Januari 2022", "Realisasi s.d. Februari 2022", "Realisasi s.d. Agustus 2022", "Realisasi s.d. Oktober 2022", "Realisasi s.d. November 2022", "Realisasi s.d. Desember 2022", "Realisasi s.d. September 2022", "% Realisasi s.d.September 2022", "Indeks Capaian s.d. September 2022", "Indeks Capaian Tahunan", "Proyeksi Realisasi s.d. Triwulan IV 2022", "Indeks Capaian Proyeksi Realisasi s.d. Triwulan IV 2022", "Keterangan Proyeksi", "Penyebab Capaian s.d Mei Belum Tercapai#(lf)(wajib diiisi untuk yang belum tercapai)", "Rencana Aksi#(lf)(wajib diiisi untuk yang belum tercapai)", "Tindakan Yang Telah Dilaksanakan#(lf)(wajib diiisi untuk yang belum tercapai)"}),
    #"Replaced Value2" = Table.ReplaceValue(#"Reordered Columns",null,100000,Replacer.ReplaceValue,{"Realisasi s.d. Januari 2022", "Realisasi s.d. Februari 2022", "Realisasi s.d. Agustus 2022", "Realisasi s.d. Oktober 2022", "Realisasi s.d. November 2022", "Realisasi s.d. Desember 2022"}),
    #"Unpivoted Only Selected Columns" = Table.Unpivot(#"Replaced Value2", {"Realisasi  s.d. Maret 2022", "Realisasi  s.d. April 2022", "Realisasi  s.d. Mei 2022", "Realisasi  s.d. Juni 2022", "Realisasi  s.d. Juli 2022", "Realisasi s.d. Januari 2022", "Realisasi s.d. Februari 2022", "Realisasi s.d. Agustus 2022", "Realisasi s.d. Oktober 2022", "Realisasi s.d. November 2022", "Realisasi s.d. Desember 2022", "Realisasi s.d. September 2022"}, "Attribute", "Value"),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Unpivoted Only Selected Columns", "Attribute", Splitter.SplitTextByDelimiter(".", QuoteStyle.Csv), {"Attribute.1", "Attribute.2", "Attribute.3"}),
    #"Changed Type4" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Attribute.1", type text}, {"Attribute.2", type text}, {"Attribute.3", type date}}),
    #"Removed Columns2" = Table.RemoveColumns(#"Changed Type4",{"Attribute.1", "Attribute.2"}),
    #"Renamed Columns3" = Table.RenameColumns(#"Removed Columns2",{{"Attribute.3", "tanggal"}}),
    #"Changed Type5" = Table.TransformColumnTypes(#"Renamed Columns3",{{"tanggal", type date}}),
    #"Reordered Columns1" = Table.ReorderColumns(#"Changed Type5",{"Unit", "tanggal", "Raw Data Tahun 2022", "Raw Data Target Q3 (60%)", "Raw Data Target s.d. September 2022 (60%)", "% Realisasi s.d.September 2022", "Indeks Capaian s.d. September 2022", "Indeks Capaian Tahunan", "Proyeksi Realisasi s.d. Triwulan IV 2022", "Indeks Capaian Proyeksi Realisasi s.d. Triwulan IV 2022", "Keterangan Proyeksi", "Penyebab Capaian s.d Mei Belum Tercapai#(lf)(wajib diiisi untuk yang belum tercapai)", "Rencana Aksi#(lf)(wajib diiisi untuk yang belum tercapai)", "Tindakan Yang Telah Dilaksanakan#(lf)(wajib diiisi untuk yang belum tercapai)", "Value"}),
    #"Replaced Value3" = Table.ReplaceValue(#"Reordered Columns1",100000,0,Replacer.ReplaceValue,{"Value"})
in
    #"Replaced Value3"

how to fix the problem.
thank in advance

susant
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Does it show up during the "Source" step? The "Removed other columns" step may strip it away.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,189
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top