Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
tig2810
New Member

Consolidate / Aggregate data for then creating visuals

 

 Hi there,

 

I am very new to PowerBI/DAX and was looking for some assistance.

 

I have an Orderitem table of say 1000 orderitems of which there are 300 orders (average 3.3 lines per order). I need to do analysis on orders not orderitems, therefore i need to be able to aggregate or consolidate the rows.

 

I have illustrated the before and required after below.  

 

Many thanks 

 

OrderNumberOrderItemWeightVolumeQuantityItem PriceLinePriceDescription 
121111200.23101.9919.9Some parts
121121000.25111.9921.89Some parts
121131300.23152.9944.85Some parts
121141400.21183.9971.82Some parts
121151500.63204.9999.8Some parts
        
Becomes the below:      
        
OrderNumberOrderItemWeightVolumeQuantityItem PriceLinePriceDescription 
121156401.557415.95258.26Some parts
        
Max ofCount OfSum OfSum OfSum OfSum OfSum OfMax of
1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi tig2801,

 

If the dataset table is the same as what the picture shows, you only need to add columns to a table visual directly. Please pay attention to that don’t select the Description column, instead, you should create a new measure following the DAX forluma below:

 

Description = LASTNONBLANK(Sheet1[Description ] ,1).

4.PNG
If you have any question, please feel free to ask.


Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi tig2801,

 

If the dataset table is the same as what the picture shows, you only need to add columns to a table visual directly. Please pay attention to that don’t select the Description column, instead, you should create a new measure following the DAX forluma below:

 

Description = LASTNONBLANK(Sheet1[Description ] ,1).

4.PNG
If you have any question, please feel free to ask.


Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.