Opening Stock Value In Powerbi

0 votes

0

I am working on Cost of goods sold using Powerbi.

https://www.mediafire.com/file/pmb7u1thsag1kq1/Cost+of+goods+sold.pbix/file

Above is my file which i uploaded on mediafire.

i am taking the average price by using average function year wise. If you see in File.

| GName       | Year | Opening Stock | InQty | OutQty | InItemValue | Average Value | Closing Stock | Closing Stock Value | Opening Stock Value | Cost of Goods Sold |
|-------------|------|---------------|-------|--------|-------------|---------------|---------------|---------------------|---------------------|--------------------|
| Bahria Town | 2016 |               | 4454  | 3586   | 126610299.8 | 28426.20113   | 868           | 24673942.58         | 0                   | 101936357.2        |
| Bahria Town | 2017 | 868           | 6379  | 6547   | 166903971.5 | 23030.76743   | 700           | 16121537.2          | 0                   | 150782434.3        |
| Bahria Town | 2018 | 700           | 9129  | 8709   | 271932546.3 | 27666.3492    | 1120          | 30986311.11         | 0                   | 240946235.2        |
| Bahria Town | 2019 | 1120          | 9333  | 9393   | 313226466.8 | 29965.22212   | 1060          | 31763135.45         | 0                   | 281463331.4        |
| Bahria Town | 2020 | 1060          | 10192 | 10136  | 362950101.2 | 32256.49673   | 1116          | 35998250.35         | 0                   | 326951850.8        |
| Bahria Town | 2021 | 987           | 8882  | 8468   | 404199067.4 | 40956.43605   | 1530          | 62663347.16         | 0                   | 346819100.5        |



In Above as you can see i just took the Average Value

Average Value = ([Opening Stock Value]+[initemvaluee])/([inqtyy]+[Opening Stock])

and closing stock value

Closing Stock Value = [Average Value] * [Closing Stock]

When i calculate the closing stock value of previous year its give me error.

circular dependency was detected: Measure: 'mak_stockInHandValue'[Average Value], Measure: 'mak_stockInHandValue'[Opening Stock Value], Measure: 'mak_stockInHandValue'[Average Value].

Any Suggestion to see the closing stock value in the field of opening stock value ?????

Feb 8, 2022 in Power BI by surbhi
• 3,820 points
431 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Power BI

+1 vote
1 answer

Show the latest value in PowerBi from ASA

Best you can do right now is ...READ MORE

answered Oct 25, 2018 in Power BI by Surendra
1,523 views
+1 vote
1 answer

Have column with multiple values in powerBI, for use with a slicer in power bi

It can be achieved depending on the result you ...READ MORE

answered Oct 22, 2018 in Power BI by Hannah
• 18,540 points
7,321 views
0 votes
1 answer

powerbi embeded in .net core 1.1

See if it helps: https://www.nuget.org/packages/PowerBI.NetStandar ...READ MORE

answered Nov 28, 2018 in Power BI by Upasana
• 8,620 points
1,405 views
0 votes
1 answer

Calculate Total number of Male & Female in the PowerBI report

To achieve what you are looking for, ...READ MORE

answered Feb 28, 2019 in Power BI by Upasana
• 8,620 points
11,141 views
0 votes
1 answer

How can I get a column value from previous row in Power Query?

Hi Sindhu, add this line as your ...READ MORE

answered Mar 18, 2019 in Power BI by Cherukuri
• 33,030 points
8,042 views
0 votes
1 answer

Why does a reference to a value in previous row throw this Expression.Error?

If you have multiple steps after the ...READ MORE

answered May 9, 2019 in Power BI by Avantika
• 1,520 points
774 views
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,198 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 22, 2018 in Power BI by nirvana
• 3,130 points
2,669 views
+2 votes
2 answers

Migrate power bi collection to power bi embedded

I agree with Kalgi, this method is ...READ MORE

answered Oct 11, 2018 in Power BI by Hannah
• 18,540 points
1,412 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Yes using Power BI REST API to ...READ MORE

answered Sep 18, 2018 in Power BI by Kalgi
• 52,360 points
1,591 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP