Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Dear all,
I'm struggling again with my Dax Code (I'm a beginner). 😖 I've the following tables:
Between the tables the following active connections exist: Table1[PR_ID] >>> Table2[PR_ID]
Table2[DC_ID] >>> Table3[DC_ID]
Additionally I have a non-active connetion between Table2[MC_ID] >>> Table3[MC_ID]
I want to calculate the Sum of the values from Table1 and display them in a visal for the different types defined in Table3. Here I've created two measures
Measure 1 for the values if the Customer is a DC (active connection):
Project | DC private | DC public | MC private | MC public |
PR1 (DC1 = MC1) | 100 | 100 | ||
PR2 (DC2 = MC1) | 200 | 200 | ||
PR3 (DC3 = MC4) | 300 | 300 |
Solved! Go to Solution.
Dear all,
thanks to everybody who tried to think about the challenge - I now solved it by simply not repeating
in the second (userrelationship) measure, but refering here to the first measure
Dear all,
thanks to everybody who tried to think about the challenge - I now solved it by simply not repeating
in the second (userrelationship) measure, but refering here to the first measure
Dear Adamk,
thanks a lot for taking time to try to help me.
As I'm not alloud to share the original structure I tried to modify it. You can see the structure and the connections of the tables. Except the Calendar_table, the other DIM-tables are for other calculations in other visuals and not relevant for my calculation.
I'm trying to calculate the sum(value) from table1 for a certain perion of time (Months, yréar) and differentiated by C_Group and C_type (C_type is a part of the C_Group [hierarchy].
Table 2 consist of colums silimiar like this
PR_ID | DC:ID | MC_ID | Explanation |
1 | 123 | 888 | as the project is carried out as su-contractor, the direct customer (DC) differs from the main customer (MC) |
2 | 432 | 432 | project carried out as main contractor, so DC and MC are the same |
Table 3 consists of 5 colums - similiar like this:
DC_ID | MC_ID | C_Name | C_Group | C_Type |
123 | 789 | Fox | public | energy |
234 | 999 | Fish | private | services |
432 | 888 | Bird | private | energy |
I hope I could explain it a bit better. Thanks a lot in advance
Bärbel
Hi @Baerbel ,
I am not able to reproduce this question, is it possible to provide relevant data about the data model so that I can answer it for you as soon as possible.
Best Regards,
Adamk Kong
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
9 | |
9 | |
6 | |
5 |
User | Count |
---|---|
19 | |
18 | |
9 | |
9 | |
8 |