Forum Discussion
LukeA
4 years agoFrequent Visitor
Merge Data in a filter table
Hi all, Is there a way to merge data that has the same text in Month and Item Name as it is throwing out my Min result (as some has 0) For example, Hi-Viz trousers would return 2 data points ...
- 4 years ago
Hi LukeA ,
Have you tried to create measures or columns to get what you want? Such as:
Sum - Measure = CALCULATE ( SUM ( 'Table'[Stock on Hand] ), ALLEXCEPT ( 'Table', 'Table'[Month], 'Table'[Size], 'Table'[Item name] ) )Sum - Column = CALCULATE ( SUM ( 'Table'[Stock on Hand] ), FILTER ( 'Table', 'Table'[Month] = EARLIER ( 'Table'[Month] ) && 'Table'[Size] = EARLIER ( 'Table'[Size] ) && 'Table'[Item name] = EARLIER ( 'Table'[Item name] ) ) )If this isn't what you want, it would be better to share a sample .pbix file for test. Please don't contain any sensitive information.
Reference: How to provide sample data in the Power BI Forum - Microsoft Power BI Community
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.