The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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]
Solved! Go to Solution.
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.
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.
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 )
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.
@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
)
Proud to be a Super User! |
|
User | Count |
---|---|
17 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |