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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
pakovic
Helper I
Helper I

Colums Calculate

Hi, I have this table in powerbi desktop and I would like to be able to display the data like this.
I have tried to use the filter function, but I get an error. is it possible to represent the table in powerbi in this way?

Attached pbix file

https://drive.google.com/file/d/1LlMuKwrs2JKNo0c0V4IfQtzKLn9pxEM5/view?usp=sharing

 

pakovic_0-1643026589585.png

 

1 ACCEPTED SOLUTION
Tahreem24
Super User
Super User

@pakovic YOu should create a Measure like below:

Measure 2 = CALCULATE(SUM('Table'[Amount Cost]),ALLSELECTED('Table'[Type]))
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

2 REPLIES 2
Tahreem24
Super User
Super User

@pakovic YOu should create a Measure like below:

Measure 2 = CALCULATE(SUM('Table'[Amount Cost]),ALLSELECTED('Table'[Type]))
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Ok, you've given me a hint... the correct function maybe would be:

Measure 2 = CALCULATE([Amount Cost];ALLSELECTED(Sales[Product]))

Thank you very much!!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.