The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
Here is my plain issue :
i've got a 2 column dataset
Lib Nb_Pad
Pad1 1
Pad2 2
Pad10 10
Pad5 5
I've seen that using the formula Text.PadStart
it was possible to do something like this :
Pad_Lib
Pad1
Pad2
Pad10
Pad5
The thing is i'm not good enough to set that up in M. -:)
I think of something like :
-------- M -------
let
Source = Excel.Workbook(File.Contents("MyPath\Myfile.xlsx"), null, true),
Order_Sheet = Source{[Item="Order",Kind="Sheet"]}[Data],
Promote = Table.PromoteHeaders(Order_Sheet, [PromoteAllScalars=true]),
// insert a step here that will do the pading trick !!
Pad = Table.TransformColumns(Promote, {{"Lib", each Text.Padstart("Lib", "Nb_Pad"), type text}})
in
Pad
-------------
Thanks for your help !
Stephane
Solved! Go to Solution.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the July 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
109 | |
68 | |
46 | |
42 |
User | Count |
---|---|
188 | |
86 | |
77 | |
74 | |
60 |