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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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