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
HenningB
Frequent Visitor

Avoid aggregation for scatter and box & whisker chart

Hi Community,

 

I have read multiple posts in the community (and outside) regarding unintended aggregation of data based on unsatisfying level of granularity, but none of the suggestion really doing the trick for me (or I am simply unable to follow properly). Either way, let me show you, what I got and what I'd like to achieve.

 

Data Source

GP Date Onlylicense_plategatepass_nrgp_to_drivergate_ingate_outGate Waiting Time [min]Yard Layover [min]Weekday [Mon=1]
06.05.202119BGX9202105040248   06.05.2021 07:5306.05.2021 08:0006.05.2021 08:347344
06.05.2021BCAA3060202104270114   06.05.2021 07:3706.05.2021 07:4306.05.2021 08:346514
06.05.2021SCZ72354202104300147   06.05.2021 07:2606.05.2021 07:4206.05.2021 09:5816164
06.05.2021FR464BF202104230176   06.05.2021 07:1006.05.2021 07:2806.05.2021 07:5017224
06.05.202143BPP3202104300145   06.05.2021 07:0306.05.2021 07:0906.05.2021 08:026524
06.05.202149BNJ7202104300211   06.05.2021 07:0106.05.2021 07:0506.05.2021 07:404344
06.05.2021LIP417202105060016   06.05.2021 06:5706.05.2021 07:0206.05.2021 07:295274
06.05.20211THL047202104270038   06.05.2021 06:5506.05.2021 06:5806.05.2021 07:333344
06.05.2021KHA656202105060012   06.05.2021 06:4606.05.2021 06:5306.05.2021 07:296364
06.05.2021FZA40241202105060011   06.05.2021 06:4606.05.2021 06:5406.05.2021 07:228284

 

That sample is out of a 400.000+ record set. I now want to create two charts:

1) Scatter plot with all the individual data points on the Y-axis with the date on the X-axis (okay, to only use a sub-set)

2) Box & Whisker chart summarizing all data per weekday across the whole data set

 

1) I wasn't able to pull off at all. 

HenningB_0-1626183050888.png

2) Requires me to use an aggregated form of the waiting time, which is obviously completely bullocks if I want to see the distribution of the waiting time.

 

Any help is highly appreciated. Can I fix this somehow with a "fake" DAX measure? 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@HenningB Have you tried using the Legend field well? I attached an example under the signature line. 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Super User
Super User

@HenningB Have you tried using the Legend field well? I attached an example under the signature line. 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler, this works indeed. Need to make sure to limit the amount of data, though. Otherwise Power BI crashes.

Greg_Deckler
Super User
Super User

@HenningB What are the other fields you are using in your scatter chart?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler,


thanks for taking time to look at my challenge.

 

My actual ambition was to capture the combination of waiting time and at which hour the truck arrived at the gate - similar to this request: Scatter with date on X and time on Y - Microsoft Power BI Community

 

Although the post is 5 years old little to no progress was made on this front (or I am too dumb to properly search the internet).

 

My MVP would be GP Date Only on the X-Axis and a dot per truck according to the waiting time in front of the gate on the Y-axis. I figured out, that a scatter chart is not the right choice and switched over to a dot plot but arriving at the same problem.

 

 

 

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.