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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Everton
Helper I
Helper I

Where to add new columns

Hi,

 

I am wondering if someone could offer guidance on where to add new columns? I realise I can add them in Query Editor also in the main editor. But what is best practice? I am getting my data source from VSTS data analytics for this project. The columns I am adding at the moment are used to give me a count of how many items are in a certain state. I am currently using the query editor:

 

let
    Source = VSTS.AnalyticsViews("testvsanalytics", "MyFirstProject", []),
    #"b91b2973-71f5-4aec-97da-1bcd9177d760_Table" = Source{[Id="b91b2973-71f5-4aec-97da-1bcd9177d760",Kind="Table"]}[Data],
    #"Inserted Text After Delimiter" = Table.AddColumn(#"b91b2973-71f5-4aec-97da-1bcd9177d760_Table", "Iteration", each Text.AfterDelimiter([Iteration Path], "\"), type text),
    #"Replaced Value" = Table.ReplaceValue(#"Inserted Text After Delimiter",null,#datetimezone(2000, 1, 1, 0, 0, 0, 10, 0),Replacer.ReplaceValue,{"Completed Date"}),
    #"CompletedLate" = Table.AddColumn(#"Replaced Value", "CompletedLate", each if [Completed Date] > [Iteration End Date] then 1 else 0),
    #"InComplete" = Table.AddColumn(#"CompletedLate", "InComplete", each if [State Category] <> "Completed" and [Iteration End Date] < DateTimeZone.FixedLocalNow() then 1 else 0),
    #"CompletedInTime" = Table.AddColumn(#"InComplete", "Completed", each if [State Category] = "Completed" and [Completed Date] < [Iteration End Date] then 1 else 0)
in
    #"CompletedInTime"

Thanks for your advice.

1 ACCEPTED SOLUTION
Shantanu00007
Helper I
Helper I

Hi Everton, 

I believe the easiest way is to create in the report view.

 

Create a new column in Home button of Menu Bar.

 

Regards,


Capture.PNG

 

 

 

View solution in original post

1 REPLY 1
Shantanu00007
Helper I
Helper I

Hi Everton, 

I believe the easiest way is to create in the report view.

 

Create a new column in Home button of Menu Bar.

 

Regards,


Capture.PNG

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.