Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi there,
I want to create a new table depending on range, I got the following data;
but I want to see it the following way;
Thanks in advanced.
Hi,
This M code will work
={Number.From([StartDate])..Number.From([EndDate])}
Then expand this new column.
Hope this helps.
The solution send me the following error
You are missing the curly brackets at the beginning and end.
Sorry, now I got the following error
Hi,
Share the link from where i can download your PBI file. Also, share the back up MS Excel file from where you loaded data into the PowerBI file.
Send you the link
https://gcgcia-my.sharepoint.com/:f:/g/personal/vgarcia_d4b_mx/EkqkEi61HtpNvxkQsY9de5EBTWQFpOhHtFqJg...
Thanks in advanced.
Hi,
There are many files there. Which one do i have to download? Also, please ensure that all information in your files is in English. I do not understand Spanish.
Re-send you the link
https://gcgcia-my.sharepoint.com/:f:/g/personal/vgarcia_d4b_mx/Emx1ZrC0U2hBnkLu7_XJw0cByx9KiC0YmdUjS...
There are only 2 files, a pbix and excel, both are in english.
Hi,
You may download my PBI file from here.
Hope this helps.
To do this, you can create a new columns with a List of the dates between start and end date, and then expand that list to new rows. See example M code below (note I started in a different date locale, so you may need to add a step with my example data to change to your locale). To see how it works, just create a blank query, go to Advanced Editor, and replace the text there with the M code below.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMtQ31DcyMDJQ0gEyjeFsIBGrE61khJA10jeygLFNgLKxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [StartDate = _t, EndDate = _t, Rate = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"StartDate", type date}, {"EndDate", type date}, {"Rate", Int64.Type}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Dates", each List.Dates([StartDate], Duration.TotalDays([EndDate]-[StartDate])+1, #duration(1,0,0,0))),
#"Removed Other Columns" = Table.SelectColumns(#"Added Custom",{"Dates", "Rate"}),
#"Expanded Dates" = Table.ExpandListColumn(#"Removed Other Columns", "Dates")
in
#"Expanded Dates"
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |