Forum

How can i create a ...
 
Notifications
Clear all

How can i create a measure that can pull out value that is a sum of column that is groupby one or more criterias?

4 Posts
2 Users
0 Reactions
64 Views
(@zchase)
Posts: 18
Eminent Member
Topic starter
 

Something like this.

Commit by Vessel:=VAR CommitVsl =
GROUPBY (Committed, Committed[Vessel], Committed[Cost Elem.],
"CommitSum", SUMX( CURRENTGROUP(), Committed[Commit]))

RETURN
SUMX(CommitVsl, [CommitSum])

The budget table have only one cost center for the vessel.

The commit table has two cost centers for the same vessel.

But i need to be able to show the correct values when i reference it in a pivot-table.

Vessel | Budget | Commit

 
Posted : 18/09/2020 12:41 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Francis, 

Please provide a sample file. My imagination isn't that good 🙂

Mynda

 
Posted : 18/09/2020 7:29 pm
(@zchase)
Posts: 18
Eminent Member
Topic starter
 

Hi,

Please find attached sample. I have not created the measure since it is giving me wrong result.

If you refer to the sample, commit amount is not correct for the "B-type".

 

I need to fix both the commit amount.

 
Posted : 19/09/2020 3:30 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Francis,

You don't have BBB-1 in your Type table, this is why there is a '(Blank)' Name in the PivotTable in columns O:Q.

Mynda

 
Posted : 20/09/2020 4:46 am
Share: