Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Good day,
I am encountering an issue that I believe has something to do with my Locale settings. Nonetheless I have not yet figured out the reason why this is not working. I am doing a calculation that results in a decimal number (0,72).
The issue I am having is with this below formula, it is not returning the correct Text. It should be seen as "Strong" however it returns "Moderate"
Formula (The CC is the name of the variable that returns the 0.72 as mentioned before)
Please keep in mind that I have tried using full stops (0.30) but it gives an error in the Formula bar.
Solved! Go to Solution.
@Anonymous
You need to replace the "||" with "&&". "||" is an alternate for "Or".
In your formula , if the value is more than 0,30 or less than 0,50, that will give "Moderate" and 0,72 is more than 0,30.
I would suggest you change your formula as below
Option 1:
IF (
CC <= { 0, 30 },
"Weak",
IF (
CC > { 0, 30 }
&& CC <= { 0, 50 },
"Moderate",
IF (
CC > { 0, 50 }
&& CC <= { 0, 99 },
"Strong",
IF ( CC = { 1 }, "Perfect", "No" )
)
)
)SWITCH (
TRUE (),
CC = 1, "Perfect",
CC > 0,50, "Strong",
CC > 0,30, "Moderate",
CC <= 0,30, "Weak",
"No"
)ThanksHi RuanG,
You can use switch statement to check the condition of this statement.
Like,
@Anonymous
You need to replace the "||" with "&&". "||" is an alternate for "Or".
In your formula , if the value is more than 0,30 or less than 0,50, that will give "Moderate" and 0,72 is more than 0,30.
I would suggest you change your formula as below
Option 1:
IF (
CC <= { 0, 30 },
"Weak",
IF (
CC > { 0, 30 }
&& CC <= { 0, 50 },
"Moderate",
IF (
CC > { 0, 50 }
&& CC <= { 0, 99 },
"Strong",
IF ( CC = { 1 }, "Perfect", "No" )
)
)
)SWITCH (
TRUE (),
CC = 1, "Perfect",
CC > 0,50, "Strong",
CC > 0,30, "Moderate",
CC <= 0,30, "Weak",
"No"
)ThanksThanks Option 2 worked well, I just needed to incase the decimals values in {} brackets, thanks for your help !
Can you please share some sample data?
Unfortunately not - Its a large dataset in order to calculate the correlation coeficient
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.