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
Napes001
Regular Visitor

Column A Sum based on Column B Dates

Im trying to get the measure sum of a column from a table by the dates of the second column and display as sum which is then filtered by the date calander. 

Example: 

Ordered AmountDelivery Date
$100 
$15001-01-2023
$7515-02-2023
$20 
$25 
$10020-01-2023

 

The return should be $325, Which then should be able to be filtered down further by a slicer date table.

 

thanks 

 

1 ACCEPTED SOLUTION

hi @Napes001 ,

 

try to plot the month column with a measure like:

measure = 
CALCULATE(
    SUM(data[Ordered Amount]),    
    data[Delivery Date]<>BLANK()
)

 

it worked like:

FreemanZ_1-1699441887697.png

 

View solution in original post

5 REPLIES 5
Napes001
Regular Visitor

I figured out the issue, I had an inactive date relationship. Added in the USERELATIONSHIP and it now works correctly. thank you for your help. 

Napes001
Regular Visitor

The table columns are similar to the above table with blank dates. The expected result would be: SUM of "Ordered Amount" with dates. 


So based on the table on the original post, My expectation is that the result would be $325 - only sum of Ordered Amoiunt that has delivery dates.

 

This would then be able to be filtered with the Date calander. IE: Filter by Jan 2023 = $250, Feb = $75 = March = $0.00, etc

 

I hope this makes sense?

 

hi @Napes001 ,

 

try to plot the month column with a measure like:

measure = 
CALCULATE(
    SUM(data[Ordered Amount]),    
    data[Delivery Date]<>BLANK()
)

 

it worked like:

FreemanZ_1-1699441887697.png

 

Thanks @FreemanZ, This appears to be working to an extent. But when I try and filter with my Calander table it wont show anything past 'todays' data?

If I dont filter, it shows the total correctly of past, present and future. I have added a image to hopefully clarify. I appreacitate your help, This is all a new learningtable example-01.jpg

 

FreemanZ
Super User
Super User

hi @Napes001 ,

 

could you say more about your expectation, ideally with expected result table?

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.