Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello everyone!
I am trying to Sum Qty from two different data sources. The data sources both contain a column that has customer names.
So i am trying to sum the Overall Qty per customer.
Here i have an example. I tried using the quick messure to add qty on qty but that only worked overall not for individual customers.
Solved! Go to Solution.
Hi,
Please try to create a distinct dimension table and create relationships among them:
DimensionTable = DISTINCT(SELECTCOLUMNS('Test-1',"CustomerID",'Test-1'[CustomerID]))Then create a measure to sum all Qty from two tables:
Measure = SUM('Test-1'[Qty])+SUM('Test-2'[Qty])Choose [CustomerID] from DimensionTable and this measure as a table visual, it shows:
Hope this helps.
Best Regards,
Giotto Zhi
Hi,
Please try to create a distinct dimension table and create relationships among them:
DimensionTable = DISTINCT(SELECTCOLUMNS('Test-1',"CustomerID",'Test-1'[CustomerID]))Then create a measure to sum all Qty from two tables:
Measure = SUM('Test-1'[Qty])+SUM('Test-2'[Qty])Choose [CustomerID] from DimensionTable and this measure as a table visual, it shows:
Hope this helps.
Best Regards,
Giotto Zhi
Create a common dimension and join both tables with that.
You can create like
customer = distinct(union(all(table1[customer ]),all(table2[customer ])))
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 23 |