Reply
Member
Posts: 52
Registered: ‎07-05-2018
Accepted Solution

Need help with DAX

I am looking for a logic, This is the data I have

 

Fromplace        Toplace           Amountfrom       AmountTo

--------------------------------------------------------------------------

Chennai            delhi                   100                  50

Chennai            mumbai              200                  20

Delhi               Chennai               300                  50

 

I want to sum all the amount for one particular location and the output should look like this,

 

Place            Amount

----------------------------

Chennai           350

Delhi               350

Mumbai           20

 

Any help is much appreciated Smiley Happy 

 

Thanks,

Indhu.


Accepted Solutions
Senior Member
Posts: 395
Registered: ‎03-23-2017

Re: Need help with DAX

I did most of the legwork in Power Query for this. CHeck out this file. It involved several unpivot transformations, then removing the duplicates, then a simple SUM() function in DAX.

 

It is heavily dependent on the text in the columns not changing titles.

 

View solution in original post


All Replies
Senior Member
Posts: 395
Registered: ‎03-23-2017

Re: Need help with DAX

I did most of the legwork in Power Query for this. CHeck out this file. It involved several unpivot transformations, then removing the duplicates, then a simple SUM() function in DAX.

 

It is heavily dependent on the text in the columns not changing titles.

 

Highlighted
Member
Posts: 52
Registered: ‎07-05-2018

Re: Need help with DAX

Thank you sooooo much Heart

Senior Member
Posts: 395
Registered: ‎03-23-2017

Re: Need help with DAX

You are very welcome.