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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Dunner2020
Post Prodigy
Post Prodigy

value can not be determined error

Hi there,

 

I am trying to create measure for the legend for map. I read following statement to calculate the measure.

 

RANGES = Sheet1[ SWITCH(TRUE(),AND(Sheet1[Confimred Cases]>=0,Sheet1[Confimred Cases]<10),"0 to 9",AND(Sheet1[Confimred Cases]>=10,Sheet1[Confimred Cases]<50),"10 to 49",Sheet1[Confimred Cases]>=50,"50 and more")
 
However, got the following error:
"The value for 'Confimred Cases' cannot be determined. Either 'Confimred Cases' doesn't exist, or there is no current row for a column named 'Confimred Cases'."
 
Could anyone help me how to fix the issue?
 
Here is the snap shot of workspace:Power BI 2.PNG
 
 
1 ACCEPTED SOLUTION

Hi @Dunner2020 ,

 

We can try to use the following measure to meet your reqirement:

 

RANGES =
SWITCH (
    TRUE (),
    AND (
        SUM ( Sheet1[Confirmed_Cases] ) >= 0,
        SUM ( Sheet1[Confimred_Cases] ) < 10
    ), "0 to 9",
    AND (
        SUM ( Sheet1[Confimred_Cases] ) >= 10,
        SUM ( Sheet1[Confimred_Cases] ) < 50
    ), "10 to 49",
    SUM ( Sheet1[Confimred_Cases] ) >= 50, "50 and more"
)

 


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
edhans
Super User
Super User

Can you make sure the column name doesn't have a trailing space(s)?

If you are doing a measure, you must specify the table before the column. Just putting [Confirmed Cases] in a measure it is expecting another measure being referenced. That is ok in a Calculated Column though as everything is the current table.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Hi @edhans,

 

I have removed the sapaces from the column name and also put the table name, but no luck. Here is the updated snippet code:

 

 

RANGES = SWITCH(TRUE(),AND(Sheet1[Confirmed_Cases]>=0,Sheet1[Confimred_Cases]<10),"0 to 9",AND(Sheet1[Confimred_Cases]>=10,Sheet1[Confimred_Cases]<50),"10 to 49",Sheet1[Confimred_Cases]>=50,"50 and more")

Hi @Dunner2020 ,

 

How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Dunner2020 ,

 

We can try to use the following measure to meet your reqirement:

 

RANGES =
SWITCH (
    TRUE (),
    AND (
        SUM ( Sheet1[Confirmed_Cases] ) >= 0,
        SUM ( Sheet1[Confimred_Cases] ) < 10
    ), "0 to 9",
    AND (
        SUM ( Sheet1[Confimred_Cases] ) >= 10,
        SUM ( Sheet1[Confimred_Cases] ) < 50
    ), "10 to 49",
    SUM ( Sheet1[Confimred_Cases] ) >= 50, "50 and more"
)

 


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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