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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

New Column IF AND Statement

Hello,

 

I am trying to categorize test results sent to an entity inside India or outside India. First I created two measures that filtered on location as either "India" or "Not India" and then created a column with the following IF AND statement:

 

Domestic or Abroad? = IF(AND(
vPBIScoreReports[# Score Reports for Not India] <=1, vPBIScoreReports[# Score Reports for India] > 0),
"Domestic", "Abroad")
 
The result of this is below in the leftside table, however when I remove the newly created colum on the rightside I see that these items are not being catagorized correctly. The row with 9 in the India Column and 2 in the Not India Column should be labled as "Abroad". Any help troubleshooting this would be much appreciated.
 
2020-01-16_11-16-50.jpg
1 REPLY 1
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Sorry, i can't find the problem from your screenshot, could you clear me in details?

My test is as below:

I create three measures, it works well either adding all three measures or any measure in the table visual.

Capture3.JPG

Best Regards
Maggie
Community Support Team _ Maggie 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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.