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
Tevon713
Helper IV
Helper IV

Sum per month per value

Hi all,

 

This subject may be solve somewhere. I can't seem to get my head around to it. Create measure to sum per month/year of the value. Also there will be a date filter slicer for user selection. See below. Thank you for your help.

 

Data Table

YearMonthNo. of  Machine
2021January20
2021January20
2021January0
2021February20
2021February20
2021February0
2021March20
2021March30
2021March10
2021April20
2021April20
2021April0
2022January10
2022January10
2022January30
 Total230

 

Outputs:

YearMonthNo. of Machine
2021January40
2021February40
2021March60
2021April40
2022January50
 Total230
1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @Tevon713 l

 

I pasted your data into a table in PBI:

tomfox_0-1653587235446.png

 

 

Then, I created a simple measure:

SumMachineMeasure =  SUM ( Table[No. of  Machine] )

 

Lastly, I dragged the measure into a table visual with the Year and Month. Note, the year column might have an implicite sum. Choose "don't summarize" instead:

 

tomfox_1-1653587415978.png

 

Power BI does the grouping for you by applying filters in the visual.

 

Let me know if this helps or if you have any questions!

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

2 REPLIES 2
tackytechtom
Super User
Super User

Hi @Tevon713 l

 

I pasted your data into a table in PBI:

tomfox_0-1653587235446.png

 

 

Then, I created a simple measure:

SumMachineMeasure =  SUM ( Table[No. of  Machine] )

 

Lastly, I dragged the measure into a table visual with the Year and Month. Note, the year column might have an implicite sum. Choose "don't summarize" instead:

 

tomfox_1-1653587415978.png

 

Power BI does the grouping for you by applying filters in the visual.

 

Let me know if this helps or if you have any questions!

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

tamerj1
Super User
Super User

Hi @Tevon713 

create a table visual. Inset the year and the month columns. Make sure to select "don't summarize". 
create a measue

SUM ( TableName[No. of Machine] )

inset the measure into the table. 

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.

Top Solution Authors