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
Anonymous
Not applicable

If a value exists more than once take one of the values.

For each type ABC, DEF, GHI,
If Body value exists more than once in 10 mins interval only take one of the values in that interval for each Type.

Below I have attached a sample data and the result I am expecting to get.

 

Sam9.PNG

 

The result I am expecting to get

LastSample.PNGLastSampleGraph.PNG

 

 

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Anonymous

 

You can create a calculated table like this, where Table1 is the first table you show:

 

NewTable =
SUMMARIZECOLUMNS ( Table1[TimeInterval],
Table1[Type],
Table1[Airflow],
Table1[BodyValue] )

 

Note that this will work well if both Airflow and BodyValue are the same in the rows for the same ten minute interval and Type. Otherwise all different lines will be shown. For instance, take ABC at 10:40. Your data has three rows for it, all with Airflow=0 and BodyValue=1. Only one one row will be show in the new table. If you had instead two rows as shown and another one with for example Airflow=1 and BodyValue=1 the new table would show one row with Airflow=0 and BodyValue=1 and another with Airflow=1 and BodyValue=1  for ABC at 10:40       

 

On a different note, please always show your sample data in text-tabular format in addition to (or instead of) the screen captures. That allows people trying to help to readily copy the data and increases the likelihood of your question being answered. Just use 'Copy table' in Power BI and paste it here.

 

Cheers

View solution in original post

2 REPLIES 2
AlB
Community Champion
Community Champion

Hi @Anonymous

 

You can create a calculated table like this, where Table1 is the first table you show:

 

NewTable =
SUMMARIZECOLUMNS ( Table1[TimeInterval],
Table1[Type],
Table1[Airflow],
Table1[BodyValue] )

 

Note that this will work well if both Airflow and BodyValue are the same in the rows for the same ten minute interval and Type. Otherwise all different lines will be shown. For instance, take ABC at 10:40. Your data has three rows for it, all with Airflow=0 and BodyValue=1. Only one one row will be show in the new table. If you had instead two rows as shown and another one with for example Airflow=1 and BodyValue=1 the new table would show one row with Airflow=0 and BodyValue=1 and another with Airflow=1 and BodyValue=1  for ABC at 10:40       

 

On a different note, please always show your sample data in text-tabular format in addition to (or instead of) the screen captures. That allows people trying to help to readily copy the data and increases the likelihood of your question being answered. Just use 'Copy table' in Power BI and paste it here.

 

Cheers

Anonymous
Not applicable

@AlB Thank you! 🙂

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors