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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Moha_shanti
Regular Visitor

Sum all reservations quantity whenever the reservation month <= PR release month.

Hi,

I have a 2 tables one contain reservation list aginst materials and another have PRs requests aginst materials as well.

I made the relation between both based on Material number becuase it is the only Key in both tables.

I have in reservation table approval dates and in other table [PR list table] PR release month.

I want to sum all reservations quantity whenever the reservation month <= PR release month.

Please lokk to below exsmple for more clearification

Moha_shanti_0-1685678369543.png

 

2 REPLIES 2
Mahesh0016
Super User
Super User

Hello @Moha_shanti 

reservations quantity =
CALCULATE (
    SUM ( 'Table AB'[PR Number] ),
         ALLEXCEPT('Table','Table'[PR release month])  
)
 
 
@Moha_shanti I hope this helps you!Thank You!!

No that will sum the PR number, the rrequired is to sum the reservation quantity henever the reservation month <= PR release month.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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