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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Jackbaz99
Helper I
Helper I

Calculation by Month and Year using Multiple Columns

Hi,

 

Ive been using Power BI for a while now but ive come across an issue that on paper should be simple but i am struggling.

 

I have a date table & column where it is in date order from 01/01/2019 until today which is fine - then essentially data from 2 other locations also in this table against the date they fall on, again no issues here.

 

However I now need to do a calculation across both of the columns to give me a figure by the Month & Year as a total. It currently only works out on the specific day. 

 

 

 

 

 

DPPM = 'DPPM'[NCR Count]/'DPPM'[Delivered Parts]*1000000

 

 

 

 

Jackbaz99_0-1616079599715.png

 

 
 

Thanks

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

DPPM should be a measure, not a calculated column formula.  Also, to your visual, drag Year/Month/Date from the Date Table.  Lastly, please modify your measure to:

DPPM = DIVIDE(SUM('DPPM'[NCR Count]),SUM('DPPM'[Delivered Parts]))*1000000

Hope this helps.

 


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

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

DPPM should be a measure, not a calculated column formula.  Also, to your visual, drag Year/Month/Date from the Date Table.  Lastly, please modify your measure to:

DPPM = DIVIDE(SUM('DPPM'[NCR Count]),SUM('DPPM'[Delivered Parts]))*1000000

Hope this helps.

 


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

Thanks so much!! Learn something new everyday 🙂

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Please provide sample data in usable format (not as a picture) and show the expected outcome.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.