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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Slukuleni
New Member

Find duplicates

I get tge beklow error on this formula in DAX

 

The syntax for ')' is incorrect. (DAX(VAR Duplicates = 'Dim GL Account FPA'[Dim GL Account FPA.FPA Account Code])).

 

Count Duplicates =
VAR Duplicates = 'Dim GL Account FPA'[Dim GL Account FPA.FPA Account Code]
RETURN

CALCULATE(
COUNTROWS('Dim GL Account FPA'),
ALL('Dim GL Account FPA'),
'Dim GL Account FPA'='Dim GL Account FPA'[Dim GL Account FPA.FPA Account Code]

1 ACCEPTED SOLUTION
v-hashadapu
Community Support
Community Support

Hi @Slukuleni , Thank you for reaching out to the Microsoft Community Forum.

 

Please refer attached .pbix file and see if it solves your issue. If not, please provide details along with sample data.

 

If this helped solve the issue, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details, always happy to help.
Thank you.

View solution in original post

6 REPLIES 6
v-dineshya
Community Support
Community Support

Hi @Slukuleni ,

Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.

v-hashadapu
Community Support
Community Support

Hi @Slukuleni , Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.

vivek31
Resolver II
Resolver II

HI @Slukuleni ,

you can use this formula to find duplicates

 

Count Duplicates =
VAR Duplicates = 'Dim GL Account FPA'[FPA Account Code]
RETURN
CALCULATE(
COUNTROWS('Dim GL Account FPA'),
ALL('Dim GL Account FPA'), 'Dim GL Account FPA'[FPA Account Code] = Duplicates ) 

v-hashadapu
Community Support
Community Support

Hi @Slukuleni , Thank you for reaching out to the Microsoft Community Forum.

 

Please refer attached .pbix file and see if it solves your issue. If not, please provide details along with sample data.

 

If this helped solve the issue, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details, always happy to help.
Thank you.

Hi @Slukuleni ,

Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.

bhanu_gautam
Super User
Super User

@Slukuleni , Try using

DAX
Count Duplicates =
VAR Duplicates = 'Dim GL Account FPA'[FPA Account Code]
RETURN
CALCULATE(
COUNTROWS('Dim GL Account FPA'),
ALL('Dim GL Account FPA'),
'Dim GL Account FPA'[FPA Account Code] = Duplicates
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.