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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

How to use multiple if staements in a collum

Hi,

I'm new to PowerBI and making reports for my company.

 

In PowerBi i'd made a new collum to do a calculation for an end reason of a product where the value is 50% of the original .

Those reason have a code.

When i do this on one stement it works great, however if i want to ad more values it doesnt work any more.

 

This is what i made:

mBedragBeschikt werkelijk = IF(FeitNVTZ[rRedenEinde}= 9; [mBedragBeschikt}/2;[mBedragBeschikt])

 

This do the job, only now i want to add a value 10 and 12 as well .

 

 

Can anyone help me on this?

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

hi @Anonymous

You mean you want to tdo the same operation when the value is 9, 10, or 12? If so,

mBedragBeschikt werkelijk =
IF (
    FeitNVTZ[rRedenEinde] IN { 9; 10; 12 };
    [mBedragBeschikt] / 2;
    [mBedragBeschikt]
)

Otherwise please explain with an example what exactly you are looking for

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Cheers  Datanaut

View solution in original post

2 REPLIES 2
AlB
Community Champion
Community Champion

hi @Anonymous

You mean you want to tdo the same operation when the value is 9, 10, or 12? If so,

mBedragBeschikt werkelijk =
IF (
    FeitNVTZ[rRedenEinde] IN { 9; 10; 12 };
    [mBedragBeschikt] / 2;
    [mBedragBeschikt]
)

Otherwise please explain with an example what exactly you are looking for

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Cheers  Datanaut

Anonymous
Not applicable


@AlB wrote:

hi @Anonymous

You mean you want to tdo the same operation when the value is 9, 10, or 12? If so,

mBedragBeschikt werkelijk =
IF (
    FeitNVTZ[rRedenEinde] IN { 9; 10; 12 };
    [mBedragBeschikt] / 2;
    [mBedragBeschikt]
)

Otherwise please explain with an example what exactly you are looking for

 

Please mark the question solved when done and consider giving kudos if posts are helpful.

Cheers  Datanaut


Yes this is exactly what i needed.

Thank you

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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