Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
The data from my invoices is collected per invoice line, but i only want to have one line number per invoice. So every invoice number can only have one unique Line number and the rest of the rows can be deleted, if this makes any sense.
So I want to transform this:
into this:
but ofcourse on a much grander scale.
how can i do this? thanks in advance!
Solved! Go to Solution.
@Anonymous
You can only filter the original table to only show 1 line number, but cannot remove roles.
There is a workaround that you can create a new table and use it to do calculations and create visuals.
Table 2 = CALCULATETABLE('Table',FILTER('Table',[Line Number]=MIN('Table'[Line Number])))
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , In power query you use remove duplicates.
https://www.youtube.com/watch?v=Hc5bIXkpGVE
In dax
Table = distinct(Table)
Table = distinct(All(Table[Invoice Numer], Table[Line inumber Invoice]))
Please provide your feedback comments and advice for new videos
Tutorial Series Dax Vs SQL Direct Query PBI Tips
Appreciate your Kudos.
@amitchandak thanks for your reply, but I dont want to remove every duplicate I just want Every invoice number to have one unique Line number. So Invoice number 500012 can only have one unique value but it doesnt matter that this unique value has duplicates. so in the example below the invoice has 3 unique line numbers but I only want 1 of them and the rest can be deleted.
so this:
Becomes this:
Any idea how to achieve this?
@Anonymous
You can only filter the original table to only show 1 line number, but cannot remove roles.
There is a workaround that you can create a new table and use it to do calculations and create visuals.
Table 2 = CALCULATETABLE('Table',FILTER('Table',[Line Number]=MIN('Table'[Line Number])))
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |