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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
dgelfuso
Helper I
Helper I

Dividing columns from two calculated tables

I have a Dates table, a bookings table, and a sales table.

 

I created two tables which summarize total bookings and total sales by EOM (End of Month from the Dates table): 

EOM = EOMONTH(Dates[Date],0)

 

I am now trying to divide the Monthly Bookings and the sales Monthly Shipments so that I can show book-to-bill by month.

 

Monthly Bookings =
SUMMARIZE (
AMCBookings,
Dates[EOM],
"Total", SUM (AMCBookings[Total])
)
 
Monthly Sales =
SUMMARIZE (
AMCSalesLog,
Dates[EOM],
"Total", SUM (AMCSalesLog[Sales])
)
 
I cannot seem to figure it out.  Can anyone help?
6 REPLIES 6
Ashish_Mathur
Super User
Super User

Hi,

Please share some data and show the expected result.


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

I would like the data to look like below and then be able to divide Total Bookings by Total Sales for each EOM.

 

EOM

Total BookingsTotal Sales
10/31/2020100,000,000.00120,000,000.00
9/30/202090,000,000.00 110,000,000.00
amitchandak
Super User
Super User

@dgelfuso , You can join then with date table and then analyze together with dates table

 

And try a measure like

divide(sum('Monthly Bookings'[Total]), sum('Monthly Sales'[Total]))

 

Or you can combone these two table and analyze

new Table

union (
SUMMARIZE (
AMCBookings,
Dates[EOM],
"Total Bookings", SUM (AMCBookings[Total]),
"Total Sales", 0
)
,
SUMMARIZE (
AMCSalesLog,
Dates[EOM],
"Total Bookings", 0,
"Total Sales", SUM (AMCSalesLog[Sales])
)
)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

 

This is the result.  I think I need one row per EOM date so that I can perform math on the two columns.

 

EOM

Total BookingsTotal Sales
10/31/20200120,000,000.00
10/31/202090,000,000.00 0

I had to create another table that resulted in one row per EOM date (see below).  I would think it would be possible to do it in one step instead of two.

 

Monthly Table Final =
SUMMARIZE (
FILTER('Monthly Table','Monthly Table'[EOM]<>blank()),
'Monthly Table'[EOM],
"Total Bookings", SUM ('Monthly Table'[Total Bookings]),
"Total Sales", SUM ('Monthly Table'[Total Sales])
)

Hi @dgelfuso 

Could you tell me if your problem has been solved? If it is, share your workaround and kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.