Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
So I had to change the info since its confidential but this should be close. I want to know How much is still in Atlanta so the Destinations are positive numbers and the Source are negative numbers. Atlanta = +1500 - 1000 +1000 -75 +75 = 1500. This is only a small percent of the entire dataset so I want Power Bi to do this on the fly where I don't have to say = Atlanta. I just want it to do it. How can I do that? Say I have 1 Million Destinations and Sources, how could I do it without doing it manually?
Destination | Dest_dollars | Source | Source_dollars |
Atlanta | 1500 | Seattle | 500 |
Bank | 500 | Atlanta | 1000 |
Atlanta | 1000 | Orlando | 3000 |
Bank | 3000 | Atlanta | 75 |
Atlanta | 75 | Seattle | 80 |
Bank | 80 | Birmingham | 1500 |
Solved! Go to Solution.
Hi @CW112358 ,
So rethinking this, if we re-shape the data and turn the data into a star schema we can simplify all of the formulas. I created three new tables in the model, using some basic Dax create table formulas. Then created simple measures on each fact table, now when you select the City from the Cities table the source dollars and destination dollars aggregate to the shared dimensionality and the $ Left Measure is simply a product of the two. Please review the pbix file.
Hope this helps..
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |