# PNL Report - issue when using not original value for one of the headers

Hello again: small_smile:

I have a problem with the PNL report. Unfortunately, it’s not as simple as other PNLs where we just assign accounts to our headers, take measures, and finally get our PNL report. There is one problem in my case: the headear “D” and “E” are the same account numbers, but the values ​​appear in “D” when they are positive and when they are negative they appear in the “E” heading. These headers are the result of adding and subtracting several accounts.

This is a very big problem for me. I can’t just write a formula in Power Query like for other headers, for example: if account_number = 400 then “B” and so on. In this case, I can’t assign an account number because the values ​​of this PNL header are the result of a calculation, not a specific turnover item.

Thought I figured it out. I made two measures, one for header D and one for header E. Then I put them in my measure for PNL:

I have my results. When I am not using these new measures, my result for heading D is 3,097.56. When I use the measure my result is 3070.56 and I can see this now:

So I thought my problem was no longer a problem. But I have a few more measures for PNL, and the last 2 are using running total because the headers C, F, I, and N have no value of their own, they are just the result of previous values. I’m sure you know that, every PNL is made that way.

And with this lasr measures, I have a problem. They takes my original value (3,097.56) instead of my new value (3,070.56). Although, I see the value of 3,070.56 in all the previous measures. The result for the F header should be 108,282.89!

So my question is: why is dax using the original value instead of my new value that we see in the matrix ?! what am I missing? How can I tell DAX to use values that we can see in matrix? And why doesn’t he do it himself right away?

PS. Of course measures 2, 3, 4, 5 and 6 are based on measure 1.

Hi @wojteq, we aim to consistently improve the topics being posted on the forum to help you in getting a strong solution faster. While waiting for a response, here are some tips so you can get the most out of the forum and other Enterprise DNA resources.

• Use the forum search to discover if your query has been asked before by another member.
• When posting a topic with formula make sure that it is correctly formatted to preformatted text </>.
• Use the proper category that best describes your topic
• Provide as much context to a question as possible.
• Include the masked demo pbix file, images of the entire scenario you are dealing with, screenshot of the data model, details of how you want to visualize a result, and any other supporting links and details.

I also suggest that you check the forum guideline How To Use The Enterprise DNA Support Forum. Not adhering to it may sometimes cause delay in getting an answer.

Please also check the How To Mask Sensitive Data thread for some tips on how to mask your pbix file.

Hi @wojteq, we’ve noticed that no response has been received from you since the 16th of December. We just want to check if you still need further help with this post? In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the checkbox. Thanks!

Anyone?

it would help if you upload the power bi files so we can view it…Please load your files

thanks
keith

1 Like

Hi @wojteq, we’ve noticed that no response has been received from you since the 23rd of December. We just want to check if you still need further help with this post? In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the checkbox. Thanks!

Hello @wojteq, due to the length by which this post has been active, we are tagging it as Solved. For further questions related to this post, please make a new thread. When starting a new post, I suggest linking this thread, provide as much context to a question as possible and include the masked demo pbix file, images of the entire scenario you are dealing with, screenshot of the data model, details of how you want to visualize a result, and any other supporting links and details. Thanks!