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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
JCG99
Regular Visitor

DAX islands and gaps problem [generic answer]

Hello everyone, 

 

I looked elsewhere to find solution to my problem. But none of them really handles the problem I am having. 

I have a big table that displays data, with one metric, the distance. Basically different charecterics on different section of the road. 

 

The user selects which category to display in the visual, and a table 'summarize' the characteristics to the different section of the road. This is very similar to the standard islands and gap problems, only I am [distance] instead of [timestamp].

 

I want to define a measure than computes the islands, and thus the min max of each region.

 

The naïve method, is just about computing min/max over all selected columns, but the result is incorrect as the gaps are not shown. 

 

Here is an example:

 

This is the struture of my table:

From | To | Category 1 (if selected) | Category 2 (if selected) | ..... 

 

Can someone give me a hint, or a generic answer of how I could achieve this ?

 

I have tried to apply the same logic I would, if I was writing a query in SQL, but I can't get it worked.

 

Any ideas, suggestions of which reasoning I should use ? 

 

Thank you

1 REPLY 1
Anonymous
Not applicable

Hi @JCG99 

 

Could you please provide me with some sample data and the results based on sample data? How to provide sample data in the Power BI Forum - Microsoft Fabric Community That would be very helpful. Please remove any sensitive data in advance.

 

Best Regards,
Yulia Xu

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.