Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I have Mainaccount and clientname, each mainaccount has multiple clientnames and the mainaccount is client by itself in my client dimensiontable. I have commission in fact policy table. the commission is per each client as shown in screenshot one. but i want to add a new column in policy table where i have to calculate the commission at mainaccount level not at clientlevel. but i am unable to acheive it using allexcept. I am able to achive it as a measure as shown in screenshot2 but i am unable to acheive it as a column. even after using allexcept it doesnt erase the clientname filter.
Below is the dax i have written to add column and below that is the result but i want 145980 to show up not at clientname level
Column :
measure:
Solved! Go to Solution.
figured this out... I am just using wrong table in allexcept... thanks all for the help!
could youpls provide some sample data and expected output?
Proud to be a Super User!
I have Clientname column (dimclienttable), mainaccount column (dimclienttable) and estimatedcommssion column (policytable).dimclienttable and policytable have one-many relationship. I want to add a column in policytable calculated as estimatedcommission at mainaccount level not at client level(one mainaccount has multiple clientnames and the
mainaccount can be client by itself). date is shown below.
ClientName | MainAccount | IsMain | Sum of EstimatedCommission |
10 Federal Holdings LLC | 10 Federal Holdings LLC | TRUE | $94,163 |
MV at Boone LLC | 10 Federal Holdings LLC | FALSE | $50,769 |
Davinci Lock Self Storage, Inc. | 10 Federal Holdings LLC | FALSE | $939 |
Bowman RD 1, LLC | 10 Federal Holdings LLC | FALSE | $109 |
10 Federal Finance LLC | 10 Federal Holdings LLC | FALSE | $0 |
10 Federal Sitework LLC | 10 Federal Holdings LLC | FALSE | $0 |
10FSS 1453 Fernwood Glendale Rd Spartan | 10 Federal Holdings LLC | FALSE | $0 |
10FSS 2601 Industrial Dr. | 10 Federal Holdings LLC | FALSE | $0 |
$145,980
|
But what is want is an extra column where sumofestimatedcommission summed up to mainaccount level as below:
ClientName | MainAccount | IsMain | Sum of EstimatedCommission | Sum of TotalEstimatedCommissionByMainAccount |
10 Federal Holdings LLC | 10 Federal Holdings LLC | TRUE | $94,163 | $145,980 |
MV at Boone LLC | 10 Federal Holdings LLC | FALSE | $50,769 | $145,980 |
Davinci Lock Self Storage, Inc. | 10 Federal Holdings LLC | FALSE | $939 | $145,980 |
Bowman RD 1, LLC | 10 Federal Holdings LLC | FALSE | $109 | $145,980 |
10 Federal Finance LLC | 10 Federal Holdings LLC | FALSE | $0 | $145,980 |
10 Federal Sitework LLC | 10 Federal Holdings LLC | FALSE | $0 | $145,980 |
10FSS 1453 Fernwood Glendale Rd Spartan | 10 Federal Holdings LLC | FALSE | $0 | $145,980 |
10FSS 2601 Industrial Dr. | 10 Federal Holdings LLC | FALSE | $0 | $145,980 |
I am using the below formula:
ClientName | MainAccount | IsMain | Sum of EstimatedCommission | Sum of TotalEstimatedCommissionByMainAccount |
10 Federal Holdings LLC | 10 Federal Holdings LLC | TRUE | $94,163 | $94,163.30 |
MV at Boone LLC | 10 Federal Holdings LLC | FALSE | $50,769 | $50,769.30 |
Davinci Lock Self Storage, Inc. | 10 Federal Holdings LLC | FALSE | $939 | $939.45 |
Bowman RD 1, LLC | 10 Federal Holdings LLC | FALSE | $109 | $108.75 |
10 Federal Finance LLC | 10 Federal Holdings LLC | FALSE | $0 | $0 |
10 Federal Sitework LLC | 10 Federal Holdings LLC | FALSE | $0 | $0 |
10FSS 1453 Fernwood Glendale Rd Spartan | 10 Federal Holdings LLC | FALSE | $0 | $0 |
10FSS 2601 Industrial Dr. | 10 Federal Holdings LLC | FALSE | $0 | $0 |
Please help!
Hi,
Share the download link of the PBI file and show the expected result very clearly.
figured this out... I am just using wrong table in allexcept... thanks all for the help!
you can try this
=calculate(sum(EstimatedCommission),allexcept(table, MainAccount))
Proud to be a Super User!
figured this out... I am just using wrong table in allexcept... thanks all for the help!
Hi, Thanks for the suggestion. I tried the formula and still gives me same values. I dont know what i am doing wrong.
Like i have heirarchy like mainaccount and clientname in one table and have estimated commission in another table. estimated commission is calculated at clientname level. I want to add a column in my fact table calculating estimated commission at mainaccount level not at client level.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
91 | |
87 | |
84 | |
68 | |
49 |
User | Count |
---|---|
131 | |
111 | |
96 | |
71 | |
67 |