Forum Discussion
Relationship status impacting data visualization?
- 6 years ago
As I suspected the solution came down to my improper use of the Relations between entities. I spent some more time familiarizing myself with DAX. Specifically the USERELATIONSHIP function and managed to bypass the troublesome active relationship and specify a sales volume with a brand.
Sorry for the confusing nature of my previous replies. I am still very new to this. I appreciate all the attempts to help clarify.
Total Volume (Filtered) = CALCULATE(SUM(volume1]), USERELATIONSHIP(brandid],brand1]))
+ CALCULATE(SUM(volume2]), USERELATIONSHIP(brandid],brand2]))
+ CALCULATE(SUM(volume3]), USERELATIONSHIP(brandid],brand3]))
+ CALCULATE(SUM(volume4]), USERELATIONSHIP(brandid],brand4]))
mrbrewmaster , is your data is in the format you have mentioned in the first post and you want data like your second post ??
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
amitchandakMy data looks like in my second post. Here is a table grab from my test.
| distributionid | size1count | size1volume | size2count | size2volume | size3count | size3volume | size4count | size4volume | invoice_name | pickupdatetime | distribution_account | brand1 | brand2 | brand3 | brand4 | size1 | size2 | size3 | size4 |
| bd79c36c-66b5-ea11-a812-000d3a8a4934 | 1 | 0.5 | 2 | 0.32 | 2 | 1 | 2 | 1 | TEST-06-23-20-1000 | 6/26/2020 17:00 | c8f7cfe0-65b5-ea11-a812-000d3a8a4934 | e0faa3ac-f299-ea11-a811-000d3a8a4934 | e0faa3ac-f299-ea11-a811-000d3a8a4934 | ada2a2e8-09a1-ea11-a812-000d3a8a4934 | 57e48445-85b2-ea11-a812-000d3a8a4934 | e7d7c02a-0fa1-ea11-a812-000d3a8a4934 | 9d35d35b-0fa1-ea11-a812-000d3a8a4934 | e7d7c02a-0fa1-ea11-a812-000d3a8a4934 | e7d7c02a-0fa1-ea11-a812-000d3a8a4934 |
| fb63c6ef-c3b5-ea11-a812-000d3a8a4934 | 1 | 0.5 | 1 | 0.5 | TEST-06-24-20-1004 | 7/10/2020 15:00 | fc78dc14-2e9a-ea11-a811-000d3a8a4934 | 4258c728-f399-ea11-a811-000d3a8a4934 | ee10d0d0-88b2-ea11-a812-000d3a8a4934 | e7d7c02a-0fa1-ea11-a812-000d3a8a4934 | e7d7c02a-0fa1-ea11-a812-000d3a8a4934 | ||||||||
| e1372cc3-c3b5-ea11-a812-000d3a8a4934 | 3 | 1.5 | 2 | 1 | TEST-06-24-20-1003 | 8/3/2020 15:00 | fc78dc14-2e9a-ea11-a811-000d3a8a4934 | 53cda586-9768-ea11-a811-000d3a8a4934 | 1838cc6e-f099-ea11-a811-000d3a8a4934 | e7d7c02a-0fa1-ea11-a812-000d3a8a4934 | e7d7c02a-0fa1-ea11-a812-000d3a8a4934 | ||||||||
| 11620893-c3b5-ea11-a812-000d3a8a4934 | 1 | 0.16 | TEST-06-24-20-1002 | 8/5/2020 17:00 | c8f7cfe0-65b5-ea11-a812-000d3a8a4934 | 4258c728-f399-ea11-a811-000d3a8a4934 | 9d35d35b-0fa1-ea11-a812-000d3a8a4934 | ||||||||||||
| 16dc4bc9-c2b5-ea11-a812-000d3a8a4934 | 10 | 5 | 5 | 0.8 | 2 | 1 | 8 | 1.28 | TEST-06-24-20-1001 | 7/1/2020 17:00 | c8f7cfe0-65b5-ea11-a812-000d3a8a4934 | 64c19bbc-f299-ea11-a811-000d3a8a4934 | ee10d0d0-88b2-ea11-a812-000d3a8a4934 | ada2a2e8-09a1-ea11-a812-000d3a8a4934 | 7b55a5fd-09a1-ea11-a812-000d3a8a4934 | e7d7c02a-0fa1-ea11-a812-000d3a8a4934 | 9d35d35b-0fa1-ea11-a812-000d3a8a4934 | e7d7c02a-0fa1-ea11-a812-000d3a8a4934 | 9d35d35b-0fa1-ea11-a812-000d3a8a4934 |