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.
Dear PowerBI users,
I'm struggling with the COA structure of the P&L.
In the image, you will find the beginning of the COA.
The first column is Description with the name of the Main Account.
Second column is the ActualYTD. The figures are correctly.
In the third column, I tried to get the gross margin, but it is not working as you can see.
The gross margin would be:
(Standard Cost of Goods Sold + Gross Sales 3rd Party) / Gross Sales 3rd Party
The result of this measure would be 0,43 (43%).
I thought, if I add a conditional column with 0, 1 and 2 I can get the measure to turn around the calculation in some rows.
In the third column (test), the measure would be:
test = IF(
[PercentageFormulaM] = 0 ; [ActualYTD] ;
IF([PercentageFormulaM] = 2 ; [Gross margin %] ; blank()))
But, if you can see, it is not the result what I expected. If you look at the fourth column, you will see that the Gross margin % measure (the measure IF([PercentageFormulaM] = 2 THEN Gross margin %) doesn't calculate it correctly. It gives me figures at the row 'Gross Sales 3rd Party' and 'Standard Cost of Goods Sold' (just the two rows which indicates the measure Gross margin % (COGS + Gross Sales)/Gross Sales). But it needs to calculate the measure in row 'Gross margin' instead of the two other rows.
Does anyone know what I'm missing in the measure? It would be a great help if we figure the correctly result out of this matter:)
If you need any further information, do not hesitate to place a comment below.
Tim
@olondo ,
So in the measure of gross margin, 'Standard Cost of Goods Sold', 'Gross Sales 3rd Party' and 'Gross Sales 3rd Party' are three additional measures, right? This issue should be related to these additional measures you haven't provided, could you please share these measures?
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Of course. The following measures are used in the P&L structure:
Dear Community,
I'm really curious if someone has the solution to this problem of has a workaround to get the result on the right row in the ChartOfAccount.
Do not hesitate to contact me if you need more information!
Kind regards,
Tim
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
96 | |
79 | |
66 | |
62 |
User | Count |
---|---|
145 | |
113 | |
105 | |
85 | |
65 |