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

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.

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
Employee
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
Employee
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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