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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
KAURM
Helper I
Helper I

Grouping column text values in Power Query

KAURM_0-1625822543383.png

Hi, I hope you are well.

 

I have the above dataset and I need to find a clean and simple solution to group the categories from Characteristic 1 - Characteristic 7 in Power Query (not DAX or using Modelling) 

 

So ideally I would like the end product to look like this

 

Characteristic  | Count (from all Characteristic 1-7 column) as the second column

Age                   

Gender

etc. 

 

If anyone can help I would really appreciate it! I have been trying to do this for two days now!

 

I am more of an excel user than a Power Query so I am on a steep learning curve...

 

Thank you in advance!

 

@v-kelly-msft @v-kellf @mahoneypat @v-stephen-msft @v-yingjl @watkinnc @Payeras_BI @AlexisOlson @Jakinta @Vera_33 @Jakinta @edhans @Fowmy @CNENFRNL 

 

3 ACCEPTED SOLUTIONS
Vera_33
Resident Rockstar
Resident Rockstar

Hi @KAURM 

 

The source was done by Enter Data, so it was generated by Power Query. I have two queries, one is called rawData which is your sample data, the other is dimTable which is the output. To make things easier, you right click to open a blank query, and go to Advanced Editor, paste the whole code. Then you can see the steps which you can apply to your original data

 

Vera_33_0-1625841679933.png

 

Vera_33_1-1625841818937.png

 

To make it easier, I put them in one query, if you still can't get it, pm your email, I will send you the sample .pbix file

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("xVXbSsNAEP2V0GfFuezM7j4WBN8U1LfSh1TXGqgJtFX0b/wWv8zpTcUmNItCQx6ykz3ZM2fOTEajAZ4iA7qoEgYng8umTsXVQ3H7mIrhpHlJFvt9j082KO8ichQLDaerfR/v59WinFSzavm2Xl6k+j7NfzwW81QuFtW0fkr1ch2/Lu820Os0q6ZVUxdlfX/WzIuJrdPD+tVNen0uZ0UzrwxVLm3TloJHp0Sej0gBmQJIoNBFoUU5BgI1mLNQF90WGKEXRRbZh3Uyb/sMR7uIFCx2OPeWLwiyiyysmYbBQD5o3OPfoRKbRpavzzuEzJMknEfNgSo7YZTMwzgGBV1RbHFIJwyiZ9Xoj2hbik6s5Ts7p60gwh7JdMqTNggCQyD4n2zbdd5lRU6BY55lKAg79Y7+1ldis8gH9tDT3wRRkFAzrYoEAZ2jVY796H2XgiFansz4oxSHfbs7F8H6iqm7jD3ofA1NtToR91NKIERla2zotx9RHXggypdIMVpzkj9ma5ovBGg9JjPZI9og2/4h+kPHnw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [LocationID = _t, #"Characteristic 1" = _t, #"Characteristic 2" = _t, #"Characteristic 3" = _t, #"Characteristic 4" = _t, #"Characteristic 5" = _t, #"Characteristic 6" = _t, #"Characteristic 7" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"LocationID", type text}, {"Characteristic 1", type text}, {"Characteristic 2", type text}, {"Characteristic 3", type text}, {"Characteristic 4", type text}, {"Characteristic 5", type text}, {"Characteristic 6", type text}, {"Characteristic 7", type text}}),
    #"Removed Columns" = Table.RemoveColumns(#"Changed Type",{"LocationID"}),
    #"Trimmed Text" = Table.TransformColumns(#"Removed Columns",{{"Characteristic 1", Text.Trim, type text}, {"Characteristic 2", Text.Trim, type text}, {"Characteristic 3", Text.Trim, type text}, {"Characteristic 4", Text.Trim, type text}, {"Characteristic 5", Text.Trim, type text}, {"Characteristic 6", Text.Trim, type text}, {"Characteristic 7", Text.Trim, type text}}),
    Custom1 = List.RemoveItems( List.RemoveNulls( List.Combine( Table.ToColumns( #"Trimmed Text"))),{""," "}),
    rawData = Table.FromList(Custom1, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    dimTable = Table.Distinct( rawData),
    #"Merged Queries" = Table.NestedJoin(dimTable, {"Column1"}, rawData, {"Column1"}, "dimTable", JoinKind.LeftOuter),
    #"Added Custom" = Table.AddColumn(#"Merged Queries", "Custom", each Table.RowCount([dimTable])),
    #"Removed Columns1" = Table.RemoveColumns(#"Added Custom",{"dimTable"})
in
    #"Removed Columns1"

 

View solution in original post

Jakinta
Solution Sage
Solution Sage

Here is another version with Grouping.

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("xVXbSsNAEP2V0GfFuezM7j4WBN8U1LfSh1TXGqgJtFX0b/wWv8zpTcUmNItCQx6ykz3ZM2fOTEajAZ4iA7qoEgYng8umTsXVQ3H7mIrhpHlJFvt9j082KO8ichQLDaerfR/v59WinFSzavm2Xl6k+j7NfzwW81QuFtW0fkr1ch2/Lu820Os0q6ZVUxdlfX/WzIuJrdPD+tVNen0uZ0UzrwxVLm3TloJHp0Sej0gBmQJIoNBFoUU5BgI1mLNQF90WGKEXRRbZh3Uyb/sMR7uIFCx2OPeWLwiyiyysmYbBQD5o3OPfoRKbRpavzzuEzJMknEfNgSo7YZTMwzgGBV1RbHFIJwyiZ9Xoj2hbik6s5Ts7p60gwh7JdMqTNggCQyD4n2zbdd5lRU6BY55lKAg79Y7+1ldis8gH9tDT3wRRkFAzrYoEAZ2jVY796H2XgiFansz4oxSHfbs7F8H6iqm7jD3ofA1NtToR91NKIERla2zotx9RHXggypdIMVpzkj9ma5ovBGg9JjPZI9og2/4h+kPHnw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [LocationID = _t, #"Characteristic 1" = _t, #"Characteristic 2" = _t, #"Characteristic 3" = _t, #"Characteristic 4" = _t, #"Characteristic 5" = _t, #"Characteristic 6" = _t, #"Characteristic 7" = _t]),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"LocationID"}, "Attribute", "Characteristics"),
    #"Removed Columns" = Table.RemoveColumns(#"Unpivoted Other Columns",{"LocationID", "Attribute"}),
    #"Trimmed Text" = Table.TransformColumns(#"Removed Columns",{{"Characteristics", Text.Trim, type text}}),
    #"Filtered Rows" = Table.SelectRows(#"Trimmed Text", each ([Characteristics] <> "")),
    #"Grouped Rows" = Table.Group(#"Filtered Rows", {"Characteristics"}, {{"Count", each Table.RowCount(_), Int64.Type}}),
    #"Sorted Rows" = Table.Sort(#"Grouped Rows",{{"Characteristics", Order.Ascending}})
in
    #"Sorted Rows"

 

View solution in original post

v-kelly-msft
Community Support
Community Support

Hi @KAURM ,

 

Check my sample .pbix file attached.

 

vkellymsft_0-1626149515165.png

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

20 REPLIES 20
KAURM
Helper I
Helper I

Thank you @Vera_33 @Jakinta @v-kelly-msft 

I finally did it! I couldn't have done it without your help and going through step by step I understand the steps and how to change the data in a way that Power Query understands it is a variable. So thank you so much! 

 

KAURM_0-1626180890344.png

 

v-kelly-msft
Community Support
Community Support

Hi @KAURM ,

 

Check my sample .pbix file attached.

 

vkellymsft_0-1626149515165.png

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Hi @v-kelly-msft Thank you for your message

I get this issue

 

KAURM_0-1626164401518.png

 

It worked when I took out the steps to add custom column from the unpivoted columns as all my data once unpivoted was already in two columns! Thank you so much! 

Hi @v-kelly-msft Thank you for your message

I get this issue

 

KAURM_0-1626164401518.png

 

Jakinta
Solution Sage
Solution Sage

Here is another version with Grouping.

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("xVXbSsNAEP2V0GfFuezM7j4WBN8U1LfSh1TXGqgJtFX0b/wWv8zpTcUmNItCQx6ykz3ZM2fOTEajAZ4iA7qoEgYng8umTsXVQ3H7mIrhpHlJFvt9j082KO8ichQLDaerfR/v59WinFSzavm2Xl6k+j7NfzwW81QuFtW0fkr1ch2/Lu820Os0q6ZVUxdlfX/WzIuJrdPD+tVNen0uZ0UzrwxVLm3TloJHp0Sej0gBmQJIoNBFoUU5BgI1mLNQF90WGKEXRRbZh3Uyb/sMR7uIFCx2OPeWLwiyiyysmYbBQD5o3OPfoRKbRpavzzuEzJMknEfNgSo7YZTMwzgGBV1RbHFIJwyiZ9Xoj2hbik6s5Ts7p60gwh7JdMqTNggCQyD4n2zbdd5lRU6BY55lKAg79Y7+1ldis8gH9tDT3wRRkFAzrYoEAZ2jVY796H2XgiFansz4oxSHfbs7F8H6iqm7jD3ofA1NtToR91NKIERla2zotx9RHXggypdIMVpzkj9ma5ovBGg9JjPZI9og2/4h+kPHnw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [LocationID = _t, #"Characteristic 1" = _t, #"Characteristic 2" = _t, #"Characteristic 3" = _t, #"Characteristic 4" = _t, #"Characteristic 5" = _t, #"Characteristic 6" = _t, #"Characteristic 7" = _t]),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"LocationID"}, "Attribute", "Characteristics"),
    #"Removed Columns" = Table.RemoveColumns(#"Unpivoted Other Columns",{"LocationID", "Attribute"}),
    #"Trimmed Text" = Table.TransformColumns(#"Removed Columns",{{"Characteristics", Text.Trim, type text}}),
    #"Filtered Rows" = Table.SelectRows(#"Trimmed Text", each ([Characteristics] <> "")),
    #"Grouped Rows" = Table.Group(#"Filtered Rows", {"Characteristics"}, {{"Count", each Table.RowCount(_), Int64.Type}}),
    #"Sorted Rows" = Table.Sort(#"Grouped Rows",{{"Characteristics", Order.Ascending}})
in
    #"Sorted Rows"

 

Hi @Jakinta I also get this error too:

 

KAURM_1-1626164781640.png

 

Just convert the column to number type in step before, as it is suggested in error description. I really dont even remember if sorting was there optional and if it was even necessary. Note: Please try to read and understand PQ error descriptions, they always give you a hint to solution.

Just convert the column to number type in step before, as it is suggested in error description. I really dont even remember if sorting was there optional and if it was even necessary. Note: Please try to read and understand PQ error descriptions, they always give you a hint to solution.

And practice, practice, practice...

"Ever tried? Ever failed? No matter. Try again. Fail again. Fail better."

Samuel Beckett

@Jakinta thank you for your reply

 

I get the following error when I try to use this code:

 

KAURM_0-1626093228540.png

 

Vera_33
Resident Rockstar
Resident Rockstar

Hi @KAURM 

 

Can you put some sample data in a format which we can copy? And put the expected reuslt as well? You can put them in Excel and paste here. 

Hi @Vera_33

 

this is the sample data

 

LocationIDCharacteristic 1Characteristic 2Characteristic 3Characteristic 4Characteristic 5Characteristic 6Characteristic 7
1-130149658None Of The Above      
1-137491395Age Disability Gender Gender reassignment Race Religion and/or belief Sexual orientation
1-714622735Age Disability Gender Gender reassignment Race Religion and/or belief Sexual orientation
1-132805828Age Disability     
1-302062804Disability Gender     
1-217561355Disability Religion and/or belief    
1-2399992260Race Religion and/or belief    
1-5134935368None Of The Above      
1-118278695Disability      
1-336286137None Of The Above      
1-129132538None Of The Above      
1-4066345315None Of The Above      
1-123986067Sexual orientation      
1-109736697Age Disability Gender Gender reassignment Race Religion and/or belief Sexual orientation
1-129459655Age Disability     
1-353712634None Of The Above      
1-4851030820Age Disability Gender Gender reassignment Race Sexual orientation
1-122460397None Of The Above      
1-285346742Disability Religion and/or belief    
1-5462783705Disability      
1-2095121638None Of The Above      
1-120814427Religion and/or belief      
1-4309674331Age Sexual orientation    
1-121025332Age Disability Religion and/or belief   
1-132660323Disability      
1-5089632910Disability      
1-116407022Religion and/or belief      
1-619097277Age Disability Gender Gender reassignment Race Religion and/or belief Sexual orientation
1-109550295Religion and/or belief      
1-114061355Religion and/or belief      

Hi @Vera_33

 

this is the sample data

 

LocationIDCharacteristic 1Characteristic 2Characteristic 3Characteristic 4Characteristic 5Characteristic 6Characteristic 7
1-130149658None Of The Above      
1-137491395Age Disability Gender Gender reassignment Race Religion and/or belief Sexual orientation
1-714622735Age Disability Gender Gender reassignment Race Religion and/or belief Sexual orientation
1-132805828Age Disability     
1-302062804Disability Gender     
1-217561355Disability Religion and/or belief    
1-2399992260Race Religion and/or belief    
1-5134935368None Of The Above      
1-118278695Disability      
1-336286137None Of The Above      
1-129132538None Of The Above      
1-4066345315None Of The Above      
1-123986067Sexual orientation      
1-109736697Age Disability Gender Gender reassignment Race Religion and/or belief Sexual orientation
1-129459655Age Disability     
1-353712634None Of The Above      
1-4851030820Age Disability Gender Gender reassignment Race Sexual orientation
1-122460397None Of The Above      
1-285346742Disability Religion and/or belief    
1-5462783705Disability      
1-2095121638None Of The Above      
1-120814427Religion and/or belief      
1-4309674331Age Sexual orientation    
1-121025332Age Disability Religion and/or belief   
1-132660323Disability      
1-5089632910Disability      
1-116407022Religion and/or belief      
1-619097277Age Disability Gender Gender reassignment Race Religion and/or belief Sexual orientation
1-109550295Religion and/or belief      
1-114061355Religion and/or belief      

Hi, @Vera_33 and this is the output I would like to achieve in Power Query, the formula for this in Excel is using a COUNTIF based on the characteristic cell below i.e. A2 and the characteristics range of columns in the sample data.

 

Thank you! I really appreciate you trying to help! 

 

Characteristic Count of characteristics
Age1926
Disability884
Gender96
Gender reassignment40
None Of The Above1073
Race91
Religion and/or belief239
Sexual orientation79
Vera_33
Resident Rockstar
Resident Rockstar

Hi @KAURM 

 

Based on your sample data, you want the output like this?

 

Vera_33_0-1625838425777.png

If yes, paste the code in Advanced Editor via blank query. I have 2 queries, one for your sample data, one for output, you can see how it was done

 

rawData as sample data

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("xVXbSsNAEP2V0GfFuezM7j4WBN8U1LfSh1TXGqgJtFX0b/wWv8zpTcUmNItCQx6ykz3ZM2fOTEajAZ4iA7qoEgYng8umTsXVQ3H7mIrhpHlJFvt9j082KO8ichQLDaerfR/v59WinFSzavm2Xl6k+j7NfzwW81QuFtW0fkr1ch2/Lu820Os0q6ZVUxdlfX/WzIuJrdPD+tVNen0uZ0UzrwxVLm3TloJHp0Sej0gBmQJIoNBFoUU5BgI1mLNQF90WGKEXRRbZh3Uyb/sMR7uIFCx2OPeWLwiyiyysmYbBQD5o3OPfoRKbRpavzzuEzJMknEfNgSo7YZTMwzgGBV1RbHFIJwyiZ9Xoj2hbik6s5Ts7p60gwh7JdMqTNggCQyD4n2zbdd5lRU6BY55lKAg79Y7+1ldis8gH9tDT3wRRkFAzrYoEAZ2jVY796H2XgiFansz4oxSHfbs7F8H6iqm7jD3ofA1NtToR91NKIERla2zotx9RHXggypdIMVpzkj9ma5ovBGg9JjPZI9og2/4h+kPHnw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [LocationID = _t, #"Characteristic 1" = _t, #"Characteristic 2" = _t, #"Characteristic 3" = _t, #"Characteristic 4" = _t, #"Characteristic 5" = _t, #"Characteristic 6" = _t, #"Characteristic 7" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"LocationID", type text}, {"Characteristic 1", type text}, {"Characteristic 2", type text}, {"Characteristic 3", type text}, {"Characteristic 4", type text}, {"Characteristic 5", type text}, {"Characteristic 6", type text}, {"Characteristic 7", type text}}),
    #"Removed Columns" = Table.RemoveColumns(#"Changed Type",{"LocationID"}),
    #"Trimmed Text" = Table.TransformColumns(#"Removed Columns",{{"Characteristic 1", Text.Trim, type text}, {"Characteristic 2", Text.Trim, type text}, {"Characteristic 3", Text.Trim, type text}, {"Characteristic 4", Text.Trim, type text}, {"Characteristic 5", Text.Trim, type text}, {"Characteristic 6", Text.Trim, type text}, {"Characteristic 7", Text.Trim, type text}}),
    Custom1 = List.RemoveItems( List.RemoveNulls( List.Combine( Table.ToColumns( #"Trimmed Text"))),{""," "}),
    #"Converted to Table" = Table.FromList(Custom1, Splitter.SplitByNothing(), null, null, ExtraValues.Error)
in
    #"Converted to Table"

this is the output

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("TYyxCgIxEER/ZUkt+A0Hgp0HahdSbLy5uBB3IYmif2+IV9jNmxme925KcGHn3UEqR8nSPgOP0AXlL1IB1ypJH9A2+pMpaF7pegdN0V4/z5lvW0CWJKbEuuytUOyMdUwXvJ+cyYp0F7d+ciF8AQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Characteristic " = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Characteristic ", type text}}),
    #"Merged Queries" = Table.NestedJoin(#"Changed Type", {"Characteristic "}, rawData, {"Column1"}, "rawData", JoinKind.LeftOuter),
    #"Added Custom" = Table.AddColumn(#"Merged Queries", "Count", each Table.RowCount([rawData])),
    #"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"rawData"})
in
    #"Removed Columns"

 

Hi, @Vera_33  what do I need to replace the below with? is it the query name that I am referring the data from or the query name and the step? as I have tried to use "#characteristics in the past 12 months" but the code is coming up with a Expression.SyntaxError: Token Eof expected. 

TYyxCgIxEER/ZUkt+A0Hgp0HahdSbLy5uBB3IYmif2+IV9jNmxme925KcGHn3UEqR8nSPgOP0AXlL1IB1ypJH9A2+pMpaF7pegdN0V4/z5lvW0CWJKbEuuytUOyMdUwXvJ+cyYp0F7d+ciF8AQ=="

 My Power Query Statements look like the following

 

KAURM_0-1625841008875.png

 

Thank you once again! 

Vera_33
Resident Rockstar
Resident Rockstar

Hi @KAURM 

 

The source was done by Enter Data, so it was generated by Power Query. I have two queries, one is called rawData which is your sample data, the other is dimTable which is the output. To make things easier, you right click to open a blank query, and go to Advanced Editor, paste the whole code. Then you can see the steps which you can apply to your original data

 

Vera_33_0-1625841679933.png

 

Vera_33_1-1625841818937.png

 

To make it easier, I put them in one query, if you still can't get it, pm your email, I will send you the sample .pbix file

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("xVXbSsNAEP2V0GfFuezM7j4WBN8U1LfSh1TXGqgJtFX0b/wWv8zpTcUmNItCQx6ykz3ZM2fOTEajAZ4iA7qoEgYng8umTsXVQ3H7mIrhpHlJFvt9j082KO8ichQLDaerfR/v59WinFSzavm2Xl6k+j7NfzwW81QuFtW0fkr1ch2/Lu820Os0q6ZVUxdlfX/WzIuJrdPD+tVNen0uZ0UzrwxVLm3TloJHp0Sej0gBmQJIoNBFoUU5BgI1mLNQF90WGKEXRRbZh3Uyb/sMR7uIFCx2OPeWLwiyiyysmYbBQD5o3OPfoRKbRpavzzuEzJMknEfNgSo7YZTMwzgGBV1RbHFIJwyiZ9Xoj2hbik6s5Ts7p60gwh7JdMqTNggCQyD4n2zbdd5lRU6BY55lKAg79Y7+1ldis8gH9tDT3wRRkFAzrYoEAZ2jVY796H2XgiFansz4oxSHfbs7F8H6iqm7jD3ofA1NtToR91NKIERla2zotx9RHXggypdIMVpzkj9ma5ovBGg9JjPZI9og2/4h+kPHnw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [LocationID = _t, #"Characteristic 1" = _t, #"Characteristic 2" = _t, #"Characteristic 3" = _t, #"Characteristic 4" = _t, #"Characteristic 5" = _t, #"Characteristic 6" = _t, #"Characteristic 7" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"LocationID", type text}, {"Characteristic 1", type text}, {"Characteristic 2", type text}, {"Characteristic 3", type text}, {"Characteristic 4", type text}, {"Characteristic 5", type text}, {"Characteristic 6", type text}, {"Characteristic 7", type text}}),
    #"Removed Columns" = Table.RemoveColumns(#"Changed Type",{"LocationID"}),
    #"Trimmed Text" = Table.TransformColumns(#"Removed Columns",{{"Characteristic 1", Text.Trim, type text}, {"Characteristic 2", Text.Trim, type text}, {"Characteristic 3", Text.Trim, type text}, {"Characteristic 4", Text.Trim, type text}, {"Characteristic 5", Text.Trim, type text}, {"Characteristic 6", Text.Trim, type text}, {"Characteristic 7", Text.Trim, type text}}),
    Custom1 = List.RemoveItems( List.RemoveNulls( List.Combine( Table.ToColumns( #"Trimmed Text"))),{""," "}),
    rawData = Table.FromList(Custom1, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    dimTable = Table.Distinct( rawData),
    #"Merged Queries" = Table.NestedJoin(dimTable, {"Column1"}, rawData, {"Column1"}, "dimTable", JoinKind.LeftOuter),
    #"Added Custom" = Table.AddColumn(#"Merged Queries", "Custom", each Table.RowCount([dimTable])),
    #"Removed Columns1" = Table.RemoveColumns(#"Added Custom",{"dimTable"})
in
    #"Removed Columns1"

 

 

Hi @Vera_33 

 

That's great thank you! 

 

I have changed the data source to #"characteristics in the last 12 months analysis" but now the following error occurs

 

KAURM_0-1626085907297.png

 

Vera_33
Resident Rockstar
Resident Rockstar

Hi @KAURM 

 

It is not just to change the Source, you need to go through the steps and understand how they work. The error might not happen at the last step, you need to click each step to understand it. My guess is it happened in the second step as your sample data was entered but your real source may be reading from somewhere, you need to transform it to the same shape then go next step. I will send you my sample .pbix file.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.