Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Dax compare agregates, possibly using self join

Hi all,

 

I am looking to compare the difference between outgoing and incoming values.  Folowing table is agregated:

 

    Origin           Destination       Sum of Quantity

    Location 1     Location 2        1234

    Location 2     Location 1         2345

    Location 1     Location 3         4566

    Location 3     Location 1         6432

 

One Idea I was a two kinds of calcuate that sumed of the quantity grouped by origin - the sum of the quantity grouped by desitnation. Where origin = destination.  The problem I see with this method is it might be rather limited in use.

 

Another idea would be to have the reader select the location.  Then out put the difference to a card.  that seems the simplest fix. But you wouldn't be able to map the difference.

 

Thoughts?

 

p.s. sorry if I take a while to respond. I wont be receiving email notifications.

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I have been able to get a work around for this, by making the bar graph with an R visual.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I have been able to get a work around for this, by making the bar graph with an R visual.

Anonymous
Not applicable

Any chance you could do a quick mock-up of what you would like to see?  I think i have an idea, but want to be sure before I start putting in too much time

Anonymous
Not applicable

 

I would like to be able to use the measure on a map, bar graph or line graph (with time on the x axis, with or without grouping in on location).

However, If I end up needing more then one measure so be it.

 

The minimun requirment would be a bar graph, with each bar being the difference/gain/loss (incoming - outgoing) for each location.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.