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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Gopinath_iyer
Helper II
Helper II

help in calculation

Hi All,

 

I need you help/suggestion in acheiving the below result. my data has multiple rows for a product with same amount repeating. How would i show the category wise sum of amount but each product to be consider only once. So in this example output should be Furniture = 300 and Office Supplies = 450.

 

CategoryProductAmount
FurnitureA100
FurnitureA100
FurnitureB200
FurnitureB200
FurnitureB200
Office suppliesC250
Office suppliesC250
Office suppliesD200
Office suppliesD200
Office suppliesD200

 

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

To your matrix visual, drag Category to the row labels.  Write these measures

Measure1 = min(data[Amount])

Measure2 = sumx(summarize(data,data[category],data[product],"ABCD",[measure1]),[abcd])

Drag Measure2 to your visual.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Gopinath_iyer ,

You could use Group By.

11.PNG

Transform data >>Transform>>Group By

22.PNG

 

33.PNG

 

44.PNG

55.PNG

amitchandak
Super User
Super User

@Gopinath_iyer , Create a measure like

 

sumx(summarize(Table,[Category],[Product],[Amount]), [Amount])

 

or remove duplicate in power query

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks creating measure worked

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.