Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hello!
I want to do the following transformation table:
Where when the document number is the same, the categoy 1 and category 2 are the same, and the sum of all the value is zero, the data must be deleted or not shown.
If document number is the same, the categoy 1 and category 2 are the same, and the sum of all the value is not zero, must calcule the sum and display the value.
How can I do it?
Thanks in advance
Solved! Go to Solution.
Hi, and now as you are showing the 11doc_number is present on the table. And is failing the first requirement.
Hi,
In the Query Editor, select the first 3 columns, right click and select Group. Select SUM and Value. Filter the last column on >0.
Hope this helps.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new calculated table.
new table expected result =
FILTER(
SUMMARIZECOLUMNS(
data[doc_number],
data[category_1],
data[category_2],
"@valuetotal", SUM(data[value])
),
[@valuetotal] <> 0
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Thanks @Jihwan_Kim for your quick reply. And I have an additional, question, the original table has other columns (such as date), so how can I have the other columns in the new table?
Hi,
In my opinion, you can add other columns from the same table.
Please try it in your sample pbix file.
Thanks.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Hi, and now as you are showing the 11doc_number is present on the table. And is failing the first requirement.
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
User | Count |
---|---|
77 | |
70 | |
70 | |
54 | |
48 |
User | Count |
---|---|
45 | |
38 | |
35 | |
31 | |
28 |