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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Sven01
Helper I
Helper I

Simultaneous occupancy Airport

Hi,

i have a table with groupnr., event (arrival or departure) and eventtime. A pair of groupnummers always contains one row as arrival and anotherone as departure event (same groupnummer).

 

What i need to know is the one hour range with the most plans on ground and the groupnummer of them.

 

Would be also nice to get the average groundtime.

 

SAMPLE DATA: https://www.dropbox.com/s/mfd2f3hbadkt245/sample%20data.pbix?dl=0

 

Thanks a lot for your time,

Cheers

 

5 REPLIES 5
v-chuncz-msft
Community Support
Community Support

@Sven01,

 

You may select Pivot Column in Query editor first.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-chuncz-msft,

 

thank you for your reply. what do you mean with select pivot colum first? sry iam a newbie to PBI

 

Thanks

Hi @v-chuncz-msft,

 

thank you for your reply. what do you mean with select pivot colum first? sry iam a newbie to PBI

 

Thanks

Dear All,

 

i need a measure to find all airplans which are on ground in a defined time window.

 

time window: 'Belegung Shape' [start] > <  'Belegung Shape' [end]

 

arriving event: [Anflug/Abflug] = "A"

departure event: [Anflug/Abflug] = "D"

 

time of event: [Bockzeit]

 

[Satzgruppennr.] = defines an arrival & departure event connected with the same groupnumber, but in two differnt rows.

 

My approach for now:

 

rolling Belegung = 
CALCULATE( DISTINCTCOUNt(Tabelle2[Satzgruppennr.] );
            FILTER (ALLSELECTED(Tabelle2) ;
AND( Tabelle2[Ankunft/Abflug] = "A" ; Tabelle2[Blockzeit] <= MAX ( 'Belegung Shape'[end] ))) ; FILTER (ALLSELECTED(Tabelle2) ;
AND( Tabelle2[Ankunft/Abflug] = "D" ; Tabelle2[Blockzeit] >= MAX ( 'Belegung Shape'[start] )))
)

 

That measure wont give any result, plaease help.

 

Thank you

 

Sven01
Helper I
Helper I

rolling occupancy  = 
CALCULATE( COUNT(Tabelle1[groupnr.] );
            FILTER (ALLSELECTED(Tabelle1) ; Tabelle1[Arr/Dep] = "A" 
                && Tabelle1[eventtime] <= MAX ( 'time shape'[end] ));
            FILTER (ALLSELECTED(Tabelle1) ; Tabelle1[Arr/Dep] = "D" 
                && Tabelle1[eventtime] >= MAX ( 'time shape'[start])))

I tryed somthing like that but unfortunately it wont work.

 

Any suggestions for a smarter way?

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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