Forum Discussion
Measure = single value cannot be determined
- 9 years ago
Hi There,
You should understand the difference between the Measure and Calculated Column. The Calculation you are trying to achieve is more suitable for calculated column and that's why showing an error for the measure calculation.
For measure, You should try SUMX.
measure:=SUMX(list,list[TURNOVER]*5)
Thanks & Regards,
Bhavesh
Okay, here my tables like;
| ID | KONU |
| 909 | IFOS (DFİF) Hakediş İşl.***2007/2** |
| 400 | Dış Krediler |
| 730 | Teslim Tutanakları |
| 331 | Teslim Tutanakları |
This is my system table, in Konu (Topic in English) colmn is completly true.
| ID | KONUSU |
| 909 | IFOS (DFİF) Hakediş İşl.***2007/2** |
| 400 | Dış Kredi |
| 730 | Teslim Tutanak |
| 331 | Teslim Tutanaklar |
And this is my OCR'ed table. As you see, there is some mistakes. For example in sytsem table, 730 and 331 ID's Konu is "Teslim Tutanakları" but in OCR table they are mistake. ("Teslim Tutanak" and "Teslim Tutanaklar")
So, as you see there is different ID but same Konu names in my tables and i have to compare these two table in Power BI. True table is first table, second one is OCR'ed. I expect this;
| ID | KONU (System Table) | KONUSU (OCR'ed Table) | Status |
| 909 | IFOS (DFİF) Hakediş İşl.***2007/2** | IFOS (DFİF) Hakediş İşl.***2007/2** | TRUE |
| 400 | Dış Krediler | Dış Kredi | FALSE |
| 730 | Teslim Tutanakları | Teslim Tutanak | FALSE |
| 331 | Teslim Tutanakları | Teslim Tutanaklar | FALSE |
Getting for this table i have tried these methods;
EXACT= IF (AYS[KONU] = PDFOCR[KONUSU], "SAME", "Not Same")
I got this error message in for this code. Same error for this method too, link.
A single value for column 'KONU' in table 'AYS' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
Also i have tried measure method. But these colmns Types are Text so measure giving no error or result.
COMPARE = IF ('MEASURES'[AYS Konu] = 'MEASURES'[PDFOCR KONUSU], TRUE(), FALSE() )
After this compare, i will take another actions like reporting or emailing.
Hi,
Try these calculated column formulas in (not measure) the first table
Konusu 1 = lookupvalue(PDFOCR[KONUSU],PDFOCR[ID],AYS[ID])
Check = AYS[Konusu]=AYS[Konusu1]
Hope this helps.
- Anonymous4 years agoNot applicable
Hi,
I tried your advice. Here, what i got error.
The syntax for 'Check' is incorrect. (DAX(lookupvalue(PDFOCR[KONUSU],PDFOCR[ID],AYS[ID])Check = AYS[Konusu]=AYS[Konusu1])).
By the way, in AYS table, colmn name is KONU, is that a problem?
Edit: Also KONU did not worked,
The syntax for 'Check' is incorrect. (DAX(lookupvalue(PDFOCR[KONUSU],PDFOCR[ID],AYS[ID])Check = AYS[KONU]=AYS[Konusu1])).
- Ashish_Mathur4 years agoSuper User
What are DAX and check in your formula?
- Anonymous4 years agoNot applicable
Hi,
I am not sure "What are DAX" exactly. Do you want to me control of columns name?
If it is i renamed column names and now all topic colmn has same name "KONU".
So, i editted your code like this;
Konusu1 = lookupvalue(PDFOCR[KONU],PDFOCR[ID],AYS[ID]) Check = AYS[KONU]=AYS[Konusu1]And this is the error.