# How to build profit & loss report with additional data import

**URL:** <https://community.eazybi.com/t/how-to-build-profit-loss-report-with-additional-data-import/71>\
**Category:** Tips & Tricks\
**Tags:** data-mapping, dataimport, mdx\
**Created:** [June 4, 2017, 11:57am UTC](https://community.eazybi.com/t/how-to-build-profit-loss-report-with-additional-data-import/71 "2017-06-04T11:57:55Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![daina.tupule](https://community.eazybi.com/user_avatar/community.eazybi.com/daina.tupule/32/8838_2.png) [@daina.tupule](https://community.eazybi.com/u/daina.tupule)\
**Post date:** [July 8, 2022, 10:40am UTC](https://community.eazybi.com/t/how-to-build-profit-loss-report-with-additional-data-import/71/6 "2022-07-08T10:40:22Z")

</div>

You can use a similar approach - import Rate as property per user and use the same calculations as represented by Rate. However, this will not support cases when the cost per sprint changes.

The solution will work for the latest sprints only with this approach. In some cases, it might be enough to get the needed values for the most recent sprints and get the costs per sprint. It won’t allow you to get back in history, though.

If you would like to keep track of costs per each individual sprint the solution will require more maintenance. You would like to import the rate per each user and per each sprint as a measure. You would need to have this mapping for any sprint you would like to calculate the costs. The solution will be more close to the one on how the Cost is imported and used in the formulas. However, you would like to use the user (Logged by or Assignee) dimension and the Sprint dimension instead of Cost center and Time.

You can prepare the file using the report with Sprint dimension and User dimension on Rows. See more here on how to use reports for preparing the import file:

> [@Import properties for Jira Assignees and build custom hierarchy](https://community.eazybi.com/t/import-properties-for-jira-assignees-and-build-custom-hierarchy/8624):
>
> eazyBI allows [importing additional properties](https://docs.eazybi.com/eazybi/data-import/data-from-jira/additional-data-import-into-jira-issues-cube) for dimensions and [creating custom hierarchies](https://docs.eazybi.com/eazybi/analyze-and-visualize/create-reports#Createreports-AddcustomhierarchiestospecificJira,Confluence,andInsightdimensions). In this example, I will walk you through how to define and import property Department for Assignee and build a custom hierarchy in the dimension Assignee. You can use the same steps to add more details for assignees or any other user dimension. Create a list of users for your source data. You can use eazyBI as a basis to create your data source. Create a new empty report in eazyBI. Use Transition Auth…

 ![image](https://community.eazybi.com/uploads/default/original/2X/d/df0efe95393626d33264103c5f0d84e95c821d85.png)

Export the file and set the cost per sprint and user, even if it is the same cost for different sprints.

 ![image](https://community.eazybi.com/uploads/default/original/2X/e/e6f905a5f62581791190cc8a18c53e828b365945.png)

I removed the columns sprint and assignee from my file. Then make the mapping - by Sprint and User dimension based on Key and Skip missing, set the Measure for the rate:

 ![image](https://community.eazybi.com/uploads/default/original/2X/c/c9c641002f81d7d9bfb78d012556a6dd583b8b2a.png)

Then it will be imported and you can use them in the calculations:

 ![image](https://community.eazybi.com/uploads/default/original/2X/4/47bdb0e7a0c08400fca2af729d1120740d74234b.png)

Please do not use the calculation directly, apply the formula and then use this formula in reports with other dimensions:

```auto
DefaultContext(
([Measures].[User rate per sprint],
[Assignee].CurrentHierarchyMember,
[Sprint].CurrentHierarchyMember)
)

```

Daina / [support@eazybi.com](mailto:support@eazybi.com)

---

_[View the full topic](https://community.eazybi.com/t/how-to-build-profit-loss-report-with-additional-data-import/71)._
