Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Community!
I'm stuck with a calculation I would like to do in DAX and was hoping to get your help.
I'm creating a financial report, showing already actuals, last year actuals, forecast and goals.
Now I need to add a column (Index %) to the overview that is showing per row the Actuals/ Actuals of "Total Sales" Line.
Except for the "Lines Sales of Goods" and "Sales of Product Related Services" I should have the value of the Actuals / Actuals of "Total Gross profit" Line.
I already tried several calculations in DAX, working with Calculated, SUM, Filter etc.
I have created the following measure already:
-> Here I should have a IF function I suppose, where I take Total Gross Profit in case the pnl line is Sales of Goods Or Sales of PRS.
FYI, maybe also need to know that I'm working with a two facts data model, the Row "Official PnL lines" are coming from dimension table (many-1 rel.)
Not even sure it is possible or easy to implement, but any tips are welcome!
Thanks in advance!
Yes, I got it that you need sample data.
I don't have the capacity currently to make it. I hope to find some time soon.
Normally with the detailed descriptions I gave, you should already be able to understand the data I'm dealing with.
If someone else has any ideas how I could make this work, always welcome.
Please provide sanitized sample data that fully covers your issue. I can only help you with meaningful sample data.
Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
Datamodel:
Data to understand:
PNL lines: string, eg "Total Sales"
Actual TY : Measure (sum of Actuals), correspond with the correct PNL line. Several accounts go into one PNL line.
Actuals: numbers in Account Data Table per Account.
Dimensions:
Units: string, code representing a department
Time: Month
Result should be a visaul table with:
row: pnl lines
columns: actual ty, MEASURE X
filters: units, time
MEASURE X =
Actuals TY/ Actuals TY of "Total Sales" Line.
Except for the "Lines Sales of Goods" and "Sales of Product Related Services" I should have the value of the Actuals TY/ Actuals TY of "Total Gross profit" Line.
Please provide sanitized sample data that fully covers your issue. I can only help you with meaningful sample data.
Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |