User Profile
RahulPBI
Helper I
Joined 6 years ago
User Widgets
Contributions
Re: Concatenate Text with Week Number column
AlB Thanks for your reply Please see below what I have done so far let EndFiscalYearMonth = 6, //set this as the last month number of your fiscal year : June = 6, July =7 etc StartDate= #date(2019, 1, 1), // Change start date #date(yyyy,m,d) EndDate = #date(2020, 12, 31), // Could change to DateTime.LocalNow() if you want to always show up to the current date /* Comment out the above StartDate and EndDate using // if you want to use a dynamic start and end date based on other query/table You will need to change "Sales" and "Invoice Date" in 2 lines below and then remove the // */ //TableName = Sales, //DateColumnName = "Invoice Date", //StartDate = Record.Field ( Table.Min(TableName,DateColumnName) ,DateColumnName), //EndDate = Record.Field(Table.Max(TableName,DateColumnName),DateColumnName), DateList = List.Dates(StartDate, Number.From(EndDate)- Number.From(StartDate)+1 ,#duration(1,0,0,0)), #"Converted to Table" = Table.FromList(DateList, Splitter.SplitByNothing(), null, null, ExtraValues.Error), #"Named as Date" = Table.RenameColumns(#"Converted to Table",{{"Column1", "Date"}}), #"Changed Type" = Table.TransformColumnTypes(#"Named as Date",{{"Date", type date}}), #"Inserted Year" = Table.AddColumn(#"Changed Type", "Calendar Year", each Date.Year([Date]), type number), #"Changed Type1" = Table.TransformColumnTypes(#"Inserted Year",{{"Calendar Year", Int64.Type}}), #"Inserted Month Number" = Table.AddColumn(#"Changed Type1", "Month Number", each Date.Month([Date]), type number), #"Changed Type2" = Table.TransformColumnTypes(#"Inserted Month Number",{{"Month Number", Int64.Type}}), #"Long Month Name" = Table.AddColumn(#"Changed Type2", "Month Long", each Date.MonthName([Date]), type text), #"Inserted Week of Year" = Table.AddColumn(#"Long Month Name", "Week of Year", each Date.WeekOfYear([Date]), Int64.Type), #"Renamed Columns" = Table.RenameColumns(#"Inserted Week of Year",{{"Week of Year", "Week"}}), #"Added Custom" = Table.AddColumn(#"Renamed Columns", "Week1", each "WK-"&[Week]) in #"Added Custom" Regards Rahul6.4KViews0likes2CommentsConcatenate Text with Week Number column
Hi Experts I am trying to concatenate text with the a week number column but I am getting an error. I've tried two diffrent options and none work = &"CONCATENATE("WK-",Calendar[Week]) = &"WK-"&[Week] Can someone please help me Regards RahulSolved6.5KViews0likes4CommentsGráficos objetivo frente a gráficos reales con visualización de gráficos de diferencias porcentuales
Hola expertos Quiero crear una visualización como la que se muestra a continuación en Power BI Es posible en Excel y me pregunto de alguien sabe cómo puedo lograr lo mismo en Power BI? Cualquier sugerencia sería muy apreciada saludos Rahull1.3KViews0likes2CommentsTarget vs Actual Charts with Percent Diff Chart Visualisation
Hi Experts I want to create a visualisation like below in Power BI It's possible in Excel and i am wondering of someone knows how I can acheive the same in Power BI? Any suggestions would be much appreciated Regards RahullSolved8.2KViews0likes2CommentsRe: Conditional Column to check If Column Blank or null then append or use non blank column
Thanks Ricardo Hope the below helps let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("bZDJCsMgEIbfJeccGpfYHs2maEuL0UMJeYOQW9+/IyodpDjgzPfPxmxbQy+i46xpm2h7mwGvQC9qcIPoyQg8cKQchnFMIhediOL5OY5Skf38rdOyLtN/wTmFBbBgrTUm0URm72atEdDq8Q4lloQyRkvTDDVlvO8raCGT3CuIN/pNUGpWymMwLd7jHbwxIRhTiI+9KUMnE9d4lQCLUI4H5IEvyM75+xc=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Ref1 = _t, Ref2 = _t, Ref3 = _t]), #"Changed Type" = Table.TransformColumnTypes(Source,{{"Ref1", type text}, {"Ref2", type text}, {"Ref3", type text}}) in #"Changed Type" Regards38KViews0likes2CommentsConditional Column to check If Column Blank or null then append or use non blank column
Hi Expert I have three columns some of the columns have data, some have blanks and some are null What I am trying to do is create a conditional column in power query which will check column1, column2 & column3 and merge the data into another column It needs to ignore the blanks and null values and if two columns have data it merges both the data with a space in between See below screen shots of the data and the expected result. I have a sample pbix file but not sure how to upload it here ThanksSolved38KViews0likes4CommentsRe: Split or Trim Rows Based on Certain Criteria
@Mariusz I realised that splitting the columns the way I needed was too hard as there were too many criterias, so I spent some time and manually fixed all the data so they are standardized Could you please help me added just one criteria to the one that you provided before? let split = Text.SplitAny( [Product Description], " /""." ), xxx = [ Column 1 = List.Select( split, (i) => List.Contains( { "A".."Z" }, Text.Start( i, 1 ) ) and List.Contains( { "0".."9" }, Text.End( i, 1 ) ) ){0}, Column 2 = try List.Select( split, (i) => Text.EndsWith( i, ".BEAM" ) ){0} otherwise "", Column 3 = try List.Select( split, (i) => Text.EndsWith( i, "LED") ){0} otherwise "", Column 4 = try List.Select( split, (i) => Text.EndsWith( i, "W" ) ){0} otherwise "", Column 5 = try List.Select( split, (i) => Text.EndsWith( i, "mA" ) ){0} otherwise "", Column 6 = List.Select( split, (i) => Text.EndsWith( Text.Upper( i ), "K" ) ){0} ] in xxx Column 3 is the only one that isn't working because there is a space before the word LED, if i add a space before the word it still doesnt work. How do I make it work? The data is always 2 or 3 numbers followed by space and then the word LED eg: 24 LED or 48 LED Could you please help me add one more column? Criteria is show any text or numbers after the word LEC Thanks1.3KViews0likes0CommentsRe: Split or Trim Rows Based on Certain Criteria
Mariusz The Column 1logic = All characters that come before G*.BEAM or R.BEAM or DY or A*.BEAM or Z*.BEAM and ** LED The Column 2 logic = All characters between the first column and *** LED The Column 7 logic = All characters after LEC with the exception the sign DIA or mA or mm its a bit complicated, most of the Column 7 logic is after LEC, the other criteria is only to cater for old data, all new data will have the correct naming system Regard1.3KViews0likes1Comment
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.