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
Fidzi8
Helper IV
Helper IV

fc. IF + more conditions

Hi,I donť know how insert more conditions?

.2020-08-06_10h24_34.png

Thank you

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Fidzi8 

you can use

in {"Ab","BC","BC"}

Other Option

[COl1] ="A" || [COl2] ="B"

View solution in original post

mahoneypat
Employee
Employee

If you are going to list the values that way, you need to use IN instead of "=".  I assume this is for a calculated column.

 

NewColumn = IF(REP_1[SPZ] IN {"SE3 910", "SE8 4164"}, ...

 

An easier way for you to do this might be to use the Groups column features, so no DAX will be required and it will be easy to adapt in the future.  Please see this link.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-grouping-and-binning

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat

 

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
mahoneypat
Employee
Employee

If you are going to list the values that way, you need to use IN instead of "=".  I assume this is for a calculated column.

 

NewColumn = IF(REP_1[SPZ] IN {"SE3 910", "SE8 4164"}, ...

 

An easier way for you to do this might be to use the Groups column features, so no DAX will be required and it will be easy to adapt in the future.  Please see this link.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-grouping-and-binning

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat

 

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


amitchandak
Super User
Super User

@Fidzi8 

you can use

in {"Ab","BC","BC"}

Other Option

[COl1] ="A" || [COl2] ="B"

Hi, 
is this good? 


2020-08-06_12h55_09.png
I don´t want to write for each number new IF.

Thank you
Ondřej

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.