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
harishkanyal
Frequent Visitor

How to add custom date differnce filed in report.

Hi,

 

I am pulling data from VSTS to Power BI. Data is refreshing everyday.

 

Please let me know how can I add new filed to show days difference between two date column. Also will this new colum through error while refresh as it deos not exists in source table

 

Thanks

Harish

2 ACCEPTED SOLUTIONS

@harishkanyal I'm assuming you are using the VSTS content pack... If that is the case, unfortunately there is currently no way to add any additional objects to the model in the Service...


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

View solution in original post

v-yuezhe-msft
Employee
Employee

Hi @harishkanyal,


By using the VSTS content pack in Power BI Service, we are not able to add new field or compare two date columns.

Based on my research, one possible method is to create custom queries over the VSTS REST API, get work item data in Power BI Desktop , then you are able to add new calculated fields, format the values and create reports within the VSTS data source in Desktop. For more details, please review the following blog.

https://blogs.endjin.com/2016/07/querying-the-vsts-work-items-api-directly-from-power-bi/


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yuezhe-msft
Employee
Employee

Hi @harishkanyal,


By using the VSTS content pack in Power BI Service, we are not able to add new field or compare two date columns.

Based on my research, one possible method is to create custom queries over the VSTS REST API, get work item data in Power BI Desktop , then you are able to add new calculated fields, format the values and create reports within the VSTS data source in Desktop. For more details, please review the following blog.

https://blogs.endjin.com/2016/07/querying-the-vsts-work-items-api-directly-from-power-bi/


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @v-yuezhe-msft @Seth_C_Bauer for responce. Now I have answer.

@harishkanyal I'm assuming you are using the VSTS content pack... If that is the case, unfortunately there is currently no way to add any additional objects to the model in the Service...


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Thanks, yes I am looking for VSTS package.

 

Is there any way to comare to date filed columns . I want to create report for Feature which completed late. ( Target date vs Closed date)

 

Thanks

Harish

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.

Top Solution Authors
Top Kudoed Authors