Forum Discussion
Summarize problems
Hi,
I am not sure how your datamodel looks like, but if you are looking for creating a new table, please check the below picture and the attached pbix file.
New Table =
SUMMARIZE (
ADDCOLUMNS (
GENERATE ( Table1, FILTER ( Table2, Table2[ID] = Table1[ID] ) ),
"@Total Distance", Table1[Distance] + Table2[Distance Flat]
),
Table1[Distance],
Table2[Distance Flat],
[@Total Distance]
)
- Anonymous3 years agoNot applicable
Hello Jihwan,
Thank you for your response.
Unforunatly i becom an error when i will use your text:
I added a newe column and putted your text in here.
Is this the wright way?
Gr
- Jihwan_Kim3 years agoSuper User
Hi,
Thank you for your message.
I am not sure how to check it without seeing your datamodel, but I see that you put that as a calculated column. My DAX formula is for creating a table, not a column.
Please share your sample pbix file's link, and then I can try to look into it to come up with a solution.
Thanks.
- Anonymous3 years agoNot applicable
Hello,
Also with a new Table, i become this error.
Attach you will find my dummy "Distance"PBIX file, with the same settings and relationship.Sorry, i will find out now how to share this link.
In this file your code is working, but the outcome in my visual is still the sum of al values together.
When i change this to "don't summarize" i become below error.