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
Matthew_BR
Frequent Visitor

Show Results in a Single Cell of a Column

Hello everybody,

 

I have a spreadsheet as placed below with item demands. I have an item identification number, the demand for the item, and the demand date.

 

I created the "Total Demand in March" column to add up all the demand for an item in a march, as the demands are separated by dates.

 

However, Power BI puts the result of the sum in all lines, I need to put it in only one, to perform other calculations in other columns involving this result. Could you help me, please? How do I show the result in just one line of the item in the month?

Item IDDemandDemand DateTotal Demand in March
12352023-03-159
12312023-03-209
12312023-03-109
12322023-03-22

9

 

Thank you very much for your help!

 

Matthew_BR

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Matthew_BR , Make sure you are using a measure like

 

calculate( Sum(Table[Demand]), filter( Table , eomonth(Table[Demand date],0)  = date(2023,03,31) ) )

 

Or join with take and use a slicer 

 

http://dataap.org/blog/2019/04/22/difference-between-calculate-with-and-without-filter-expression/

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Matthew_BR , Make sure you are using a measure like

 

calculate( Sum(Table[Demand]), filter( Table , eomonth(Table[Demand date],0)  = date(2023,03,31) ) )

 

Or join with take and use a slicer 

 

http://dataap.org/blog/2019/04/22/difference-between-calculate-with-and-without-filter-expression/

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

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.