Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi community,
Following is my sample dataset, I want to add a column "Total Sal"(already added in the following snapshot) that is total of distinct salaries of employees. Grouped by Dept, position,empcode.
I have tried few DAX, but nothing is working.
Your help is much appretiated.
Many thanks,
Meena
Solved! Go to Solution.
Another community member could probably improve on this, but I did this by changing the grain of the table, i.e. removing the qualification column and consolidating the duplicates. You can do this in a separate table by referencing the query in Query Editor.
Then you can add in the measure:
Total Departmental Salary = CALCULATE ( SUM ( Salaries[Salary] ), ALLEXCEPT ( Salaries, Salaries[Dept] ) )
Table = SUMMARIZE ( EmpSalary, EmpSalary[Dept], EmpSalary[empcode], EmpSalary[Position], "TotalSal", DISTINCT ( EmpSalary[salary] ) )
Hai Meena.,
Please try this....
Another community member could probably improve on this, but I did this by changing the grain of the table, i.e. removing the qualification column and consolidating the duplicates. You can do this in a separate table by referencing the query in Query Editor.
Then you can add in the measure:
Total Departmental Salary = CALCULATE ( SUM ( Salaries[Salary] ), ALLEXCEPT ( Salaries, Salaries[Dept] ) )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
67 | |
66 | |
51 | |
33 |
User | Count |
---|---|
113 | |
95 | |
75 | |
64 | |
40 |