Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Aravind_Kumar
Frequent Visitor

P&L - Cost to Net Sales Percentage

Hello; There are couple of post similar to this topic, but i am still having issues.

Below is the Matrix. This is coming from one fact table, where Gl are grouped into Revenue & Exp and one column for Total Value.

So how to get the Percentage of Net sales for the expense items ?

  % of Net Sales
Revenue1000 
Material Cost-400-40%
Direct Cost-150-15%
Indirect Cost-100-10%
Others-50-5%
Gross Profit30030%
1 ACCEPTED SOLUTION

THANKS..

I USED ALLSELECTED FUNCTION BASED IN SOLUTION FROM ANOTHER POST WHICH FIXED THE ISSUE

View solution in original post

4 REPLIES 4
Aravind_Kumar
Frequent Visitor

working on live data... so...

Its a single fact table which has all the GL and with Values.. which has relationship to one GL Mapping table to arrive the expense group and another calendar table for time period...

Fact table like this

GL | GL $ | Period |

All GL (Revenue & Costs) are in single fact table..

THANKS..

I USED ALLSELECTED FUNCTION BASED IN SOLUTION FROM ANOTHER POST WHICH FIXED THE ISSUE

Hi,

To your Table visual, drag the GL category to the row labels.  Write these measures

Total = sum('Fact Table'[GL $])

Rev = calculate([Total],'GL Categories'[Category]="Revenue")

% of net sales = divide([Total],[Rev])

Hope this helps. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ashish_Mathur
Super User
Super User

Hi,

The solution would depend upon the structure of Tables in the backend.  Share the download link of your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.