Forum Discussion
Need help with a DAX formula
I have 2 measures
one is Transactions - which is nothing but the Sum(Transactions) from my Fact 'Debit Transaction' and the other one is
'Sector Transactions' - which actually should show the value for the whole sector of a customer.
The measure is written in this way
Now, if i take one more column from an another dimension then it just starts to show all the records from the other dimensions.
For example: the other dimension is called - Contract and the column is called "Commercial Name" then it just shows all the values or records from the Contract Dimension. like this,
But, the expected ourcome is,
I basically want the CommercialName of the customer along witht the values to the measures but not all the commercialnames from the dimension
can someone help on this?
Thanks,
Vijay
6 Replies
- _AAndradeResident Rockstar
Hi BI_Vijay,
Please try this formula:
Sector Transactions = VAR SelectedSector = SELECTEDVALUE(Customer[Sector Name]) VAR Output1 = IF( ISBLANK(SelectedSector), BLANK(), CALCULATE( SUM('Debit Transaction'[Transactions]), REMOVEFILTERS(Customer[Main Sector Name]) ) ) RETURN Output1