Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How to aggregate Data on Order+Article Level to Order Level?

Hi Power BI community,

 

I was trying to aggregate Data on Order+Article level to Order level on Power BI Desktop but it keeps crashing.

Basically I have a massive database (24 million records) in Order+Article level with metrics like Net Sales and Discounts and want to aggregate it in Order level (8 million distinct orders) and have the metrics in that level. An Order has multiple Articles.

Do you know any way of being able to achieve this? Thank you so much

 

A quick example

 

As-is (24 million records)

 

Order IDArticle IDNet SalesDiscounts
1A5-3
1B3-1
1C7-2
2A4-2
2C6

-3

 

To-be (8 million records)

 

Order ID

Net SalesDiscounts
115-6
210-5
  • Power BI does that automatically for you. All you need to do is not include the [Article ID]  column in the visual.

1 Reply

  • Power BI does that automatically for you. All you need to do is not include the [Article ID]  column in the visual.