March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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 ID | Demand | Demand Date | Total Demand in March |
123 | 5 | 2023-03-15 | 9 |
123 | 1 | 2023-03-20 | 9 |
123 | 1 | 2023-03-10 | 9 |
123 | 2 | 2023-03-22 | 9 |
Thank you very much for your help!
Matthew_BR
Solved! Go to Solution.
@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/
@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/
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |