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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
flyix
Frequent Visitor

Measure summing all values of the following 60min

Hello!

 

For a diagramm showing number of passengers vs. time of day I want to create a measure, that sums up all passenger numbers within the next 60min. So in the diagramm at f.e. 09:00, the curve will actually depict all passengers within 09:00-10:00.

(This is required to estimate short-term passenger load at any given time of day, rather than actual total number of passengers.)

 

 Flight NumberTime seriesLocalDepTimePaxShowUpTimeSeats
1ABC12315.07.202306:0015.07.2023 04:00100
2ABC12415.07.202306:1515.07.2023 04:15100
3ABC12515.07.202315:3015.07.2023 13:00100
4DEF52615.07.202307:0015.07.2023 05:00100
5DEF52715.07.202309:3015.07.2023 08:30100
6FGH22515.07.202306:2515.07.2023 04:25100
7FGH99615.07.202306:1015.07.2023 04:10100
8TZE55015.07.202307:0515.07.2023 05:05100
9MFR75315.07.202312:3015.07.2023 10:30100

 

The measure shall summarize Seats by PaxShowUpTime, so at 04:00 the measure should give 500 (Lines 1, 2, 4, 6, 7).

 

The complete dataset has values for multiple days and the diagram is already adjustable by a date slicer and a load factor slider.

 

flyix_0-1691483070812.png

 

2 REPLIES 2
v-tangjie-msft
Community Support
Community Support

Hi @flyix ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create a table and measures. 

Measure = MAX('Table'[PaxShowUpTime])+TIME(0,60,0)
Table 2 = ADDCOLUMNS('Table',"60min",[Measure])
Measure 2 = CALCULATE(SUM('Table 2'[Seats]),FILTER(ALL('Table 2'),'Table 2'[PaxShowUpTime] >= MAX('Table 2'[PaxShowUpTime]) && 'Table 2'[PaxShowUpTime]<=MAX('Table 2'[60min])))

(3) Then the result is as follows.

vtangjiemsft_0-1691637075213.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Hello Neeko,

 

thank you for your response! However your solution is not quite what I need. I attached the PBIX for you to have a look at, specifically the "Pax Departure" diagram is what I want to change.

 

Instead of showing how many passengers show up at what minute, it should show the number of passengers of the next 60min in 5min intervalls (starting at the min time of PaxShowUpTime, ending at the maximum time of PaxShowUpTime, or else just 03:00-23:00).

So the outcome probably will be a table like:

PaxShowUpTimeSum of Seats including next 60min
03:00623
03:05655
03:10697
... 

(values are fictional)

 

https://we.tl/t-p5NyU1fWSK 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Fabric Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.