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

API Dataset - Filter duplicate rows

Hi,

 

I have a dataset which is populated from Rest API. It basically reports  transaction time in minutes each month and displays the average.

 

Issue currently I have is for some months, I have duplicated rows for a particular month entry.

 

As per screenshot, I display 3 values ( 11 for August / 49 for September / 49 for October), therefore average should be 36.33

 

However, I have duplicate values for August month so PowerBi counts 11 + 11 for August + 49 for September + 49 for October / 4 = 30 minutes.

 

Is there any way to remove/filter the duplicate value for a row ? I've tried using DISTINCT function but couldn't get it working.

 

ThanksScreen Shot 2017-10-31 at 21.54.14.png

 

 

1 ACCEPTED SOLUTION

Hi @v-shex-msft,

 

Thanks for the inputs.

 

Unfortunately, the Query Editor is greyed out when the data source is a PowerBi Service dataset:

 

Screen Shot 2017-11-01 at 16.27.04.png

 

Hopefully, the feature to update/delete individual rows on a Service dataset will be available soon: https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/9366600-update-rows-rest-api

 

Regards

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @donbesada,

 

You can try to use power query to filter duplicate records.

5.PNG

 

>> I've tried using DISTINCT function but couldn't get it working.

DISTINCT function will remove records which every columns has the similar value(e.g. row1[column1] =row2[column1], row1[column2]=row2[column2]... keep one of them)

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi @v-shex-msft,

 

Thanks for the inputs.

 

Unfortunately, the Query Editor is greyed out when the data source is a PowerBi Service dataset:

 

Screen Shot 2017-11-01 at 16.27.04.png

 

Hopefully, the feature to update/delete individual rows on a Service dataset will be available soon: https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/9366600-update-rows-rest-api

 

Regards

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.

Top Solution Authors
Top Kudoed Authors