Forum Discussion
Remove Duplicates
- 6 years ago
Hi,
This M code should let you comobine text with number
=Text_column&Number.ToText(Numeric_column)
Replace Text_column and Numeric_column with your actua table and column names.
Yea that;'s the issue. I have get the average but I cannot remove duplicates in data tab.
I can remove duplicates in tranform tabl but I cannot get the average it before removing duplicates.
I sthere any way that I can do this?
Hi,
I cnanot understand your question. Share your data, explain the business context and show the expected result.
- cham6 years agoPost Patron
This is the table,
I want to get the average of lat for 7000 TAS. There are 6 lat records for 7000 TAS. So I want to get the average for that. Likewise I want to get the averageif for all the data.
suburb postcode state Suburb and Postcode lat lon PostCode AND State GLEBE 7000 TAS GLEBE7000 -42.874031 147.326354 7000 TAS HOBART 7000 TAS HOBART7000 -42.882743 147.330234 7000 TAS MOUNT STUART 7000 TAS MOUNT STUART7000 -42.873119 147.302297 7000 TAS NORTH HOBART 7000 TAS NORTH HOBART7000 -42.872319 147.314579 7000 TAS QUEENS DOMAIN 7000 TAS QUEENS DOMAIN7000 -42.865684 147.32872 7000 TAS WEST HOBART 7000 TAS WEST HOBART7000 -42.883713 147.314907 7000 TAS HOBART 7001 TAS HOBART7001 -42.837499 147.506162 7001 TAS TASMAN ISLAND 7001 TAS TASMAN ISLAND7001 -43.238773 148.002958 7001 TAS NORTH HOBART 7002 TAS NORTH HOBART7002 -42.899691 147.446349 7002 TAS BATTERY POINT 7004 TAS BATTERY POINT7004 -42.892767 147.333242 7004 TAS SOUTH HOBART 7004 TAS SOUTH HOBART7004 -42.892586 147.316109 7004 TAS DYNNYRNE 7005 TAS DYNNYRNE7005 -42.901018 147.314131 7005 TAS LOWER SANDY BAY 7005 TAS LOWER SANDY BAY7005 -42.919553 147.354439 7005 TAS - Ashish_Mathur6 years agoSuper User
Hi,
Click on the Table visual and drag the 2 fields Suburb and Post code to the visual. Write this measure
=average(Data[Lat])
Hope this helps.
- cham6 years agoPost Patron
I want to get the avarage of lat and vlookup it to ther other sheet. Its not about showing the avaerage in a table.
So without doing thses in Power BI its better to do ot in Excel right? But if there is anyway to remove duplicates in Data tab I can get the correct results.
- Ashish_Mathur6 years agoSuper User
Hi,
You will need to share that other table as well. Show the exact result that you are expecting to see in the other table.
- cham6 years agoPost Patron
Thanks. I found a way.