The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi guys,
I need help in one measure.
I have the format Column A = String and the Collumn B = Number
I need to count the number of rows that meet these requirments:
Count if the value on column A is = "NACIONAL" and if the value on column b ="0" or "1" .
But my measure appears one error "MdxScript(Model) (121, 167) Calculation error in measure "Table1"[feedbackmeasure]: Function 'CONTAINSROW' does not support comparison values of type Text with values of type Integer. Consider using the VALUE or FORMAT function to convert one of the values.
My measure:
Datatable:
COLUMN A | COLUMN B |
NACIONAL | 1 |
INTERNACIONAL | 3 |
NACIONAL | 4 |
NACIONAL | 4 |
NACIONAL | 1 |
INTERNACIONAL | 3 |
INTERNACIONAL | 3 |
NACIONAL | 0 |
NACIONAL | 1 |
NACIONAL | 0 |
INTERNACIONAL | 3 |
INTERNACIONAL | 3 |
Some solution for this?
Thanks
Solved! Go to Solution.
"0" and "1" are both Text, because you've enclosed them in quotes.
Try
Table1[COLUMN B] IN {0,1}
and see if that works
"0" and "1" are both Text, because you've enclosed them in quotes.
Try
Table1[COLUMN B] IN {0,1}
and see if that works
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
119 | |
86 | |
75 | |
55 | |
44 |
User | Count |
---|---|
135 | |
125 | |
78 | |
64 | |
63 |