cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fahmad
Frequent Visitor

flight no display along with time

Good morning all.

 

i have two fields flight_no and Flight_time.

 

Flight_Time         Flight_NO

00:00                   XY123

00:01                   XY124

00:05                   XY125

00:10                   XY126

00:20                   XY127

 

i want to show flight_no against flight time in graphical format in graph or as below

fahmad_0-1641970903275.png

Regards,

Faraz Ahmad.

1 ACCEPTED SOLUTION

Hi @fahmad ,

 

The visual in power bi is almost the value after aggregation. If there are multiple values in the text, the first or last value will also be displayed. You can display several flights in the current time by CONCATENATEX function.

Column = CONCATENATEX(FILTER('Table',EARLIER('Table'[Flight Time])='Table'[Flight Time]),'Table'[Flight_no],",")

Measure = CONCATENATEX('Table','Table'[Flight_no],",")

 

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@fahmad , You need to create a 10 Min bucket

 

10 Min Bucket = time(hour([Flight_Time]), ROUNDUP(Minute([Flight_Time]),-1), 0)

 

Then create a rank

Rank = rankx(filter(Table, [10 Min Bucket] = earlier([10 Min Bucket])), [Flight_Time], ,asc,dense) 

 

Now put Rank on row, Bucket on column, and max of Flight_NO on values of matrix and try



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

Thank you very much for quick reqply.

 

But some time i have more than once flight on same time example:

 

Flight Time  Flight_NO

 00:30        XY321

00:30         XY521

 

Regards.

Faraz Ahmad.

Hi @fahmad ,

 

The visual in power bi is almost the value after aggregation. If there are multiple values in the text, the first or last value will also be displayed. You can display several flights in the current time by CONCATENATEX function.

Column = CONCATENATEX(FILTER('Table',EARLIER('Table'[Flight Time])='Table'[Flight Time]),'Table'[Flight_no],",")

Measure = CONCATENATEX('Table','Table'[Flight_no],",")

 

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

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors