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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.