cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
indhu Member
Member

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.

1 ACCEPTED SOLUTION

Accepted Solutions
edhans New Contributor
New Contributor

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.

 

3 REPLIES 3
edhans New Contributor
New Contributor

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.

 

indhu Member
Member

Re: Need help with DAX

Thank you sooooo much Heart

Highlighted
edhans New Contributor
New Contributor

Re: Need help with DAX

You are very welcome.

Helpful resources

Announcements
Community Highlights

Community Highlights

Find out what's new in the Power BI Community!

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 363 members 4,117 guests
Please welcome our newest community members: