Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi,
I am trying to create new column in matrix, but nothing works so far for me. The result supposed to look like this, I already have Sales Actual and Sales Forecast columns. How can I create % of Sales columns?:
Expected result
Solved! Go to Solution.
Hi @anaxha ,
This is my test table:
Please add a column called “Profit” in Power Query:
Check Product column, Month column, Acutual/OP column, then Unpivot Other Columns in Transform tab.
You will get a table like below:
Please try following DAX:
% of sales =
VAR Sumsales = CALCULATE(SUMX(FILTER('table','table'[Attribute]="Sales"),[Value]),ALLSELECTED('table'))
VAR SUMValue = SUM('table'[Value])
VAR percentage = IF(MAX('table'[Attribute])<>"Sales" && MAX('table'[Attribute])<>"Profit",SUMValue/SUMSales,BLANK())
RETURN percentage
Create a table visual and you will get result you want:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @anaxha ,
This is my test table:
Please add a column called “Profit” in Power Query:
Check Product column, Month column, Acutual/OP column, then Unpivot Other Columns in Transform tab.
You will get a table like below:
Please try following DAX:
% of sales =
VAR Sumsales = CALCULATE(SUMX(FILTER('table','table'[Attribute]="Sales"),[Value]),ALLSELECTED('table'))
VAR SUMValue = SUM('table'[Value])
VAR percentage = IF(MAX('table'[Attribute])<>"Sales" && MAX('table'[Attribute])<>"Profit",SUMValue/SUMSales,BLANK())
RETURN percentage
Create a table visual and you will get result you want:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@anaxha , If sales is a value in a table column then
divide([Measure], calculate([Measure], filter(all(Table[KPI]) , Table[KPI] ="Sales"))
but if you have done this using calculation groups, refer I tried a few combinations here. if those can help
Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0
Hi,
Thank You for the answer. I wasn't precise. My data looks something like this, so in this case I don't have any measures:
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 37 | |
| 31 | |
| 27 | |
| 27 |