Join 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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I have added a new column to categorize my products. You can see my catecories (description_categorie). I have a categorie named "Total" (N=27 476) and "Total (frais)" N=11 425). My category "Total" should be 16 051 (27 425 - 11 425). How to get this result without changing the name of my column (Descrition_categorie) as I ha ve in many graphs I don't want to change them.
Hi,
Can i ask how you added this 'new column to categorize products'? If this was created by DAX or Power Query, i'd suggest maybe fixing the logic in that column so “Total” no longer includes “Total (frais)” items? This avoids needing an adjustment measure altogether.
Yes, I click on transform Data and ADD A COLUMN
Show in another way (I cut a long part as it's all the same programmation):
= Table.AddColumn(#"Valeur remplacée", "Personnalisé", each if Text.Contains([description], "BLC-1500 LAVE-GLACE BIO") then "Antigel - produits chimiques" else if [description] = "URÉE" then "Urée" else if [description] = "UREE" then "Urée" else if Text.StartsWith([description], "TOTAL") then "Total" else if Text.StartsWith([description], "ATS") then "ATS" else if [description] = "HUILE A FORME ISO 55" then "Envirolub" else if Text.StartsWith([description], "ENVIROLIN") then "Envirolin" else if [description] = "FRAIS DE TRANSPORT LUBRIFIANTS" then "Total (frais)" else "À VOIR")
The results concern amount, Profit and Volume
deleted..
No, I need to calculate "Total" minus "Total (frais)" to get the real amount/profit/volume of "Total".
Hi, i thought you were looking to adjust your logic for the column. If only to calculate the Total minus Total (frais). You will need to use Measures as @123abc suggesed.
Create measures like
Amount := SUM('table'[Amount])
Total =
CALCULATE([Amount], 'table'[Description_categorie] = "Total")
TotalFrais =
CALCULATE([Amount], 'table'[Description_categorie] = "Total (frais)")
Measure=
SWITCH(
SELECTEDVALUE('table'[Description_categorie]),
"Total", Total
[Amount]
)
Hi,
I would rename the new measure to the old measure name and also test it first in a duplicated file.
By that you may replace the logic of Qtée stock Measure with the SWITCH logic, delete the temporary QTÉ (switch) measure and rename your updated Qtée stock Measure back to Qté Stock.
You don’t need to rename your existing column; you can handle this with a DAX measure or a calculated column that adjusts the value for “Total” without changing the original category names.
Could you help me to reach it ?
sure
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |