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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ksnnidhi
Regular Visitor

Calculation like excel

Is this calculation is possible in power bi

2 2

3 5

 

5 10

10 20

 

1 ACCEPTED SOLUTION
TheoC
Super User
Super User

@ksnnidhi everything is possible in Power BI (except some things) but all things are possible... just not everything.

 

Create a calculated column like below:

 

Calculated Column = 

SWITCH (
TRUE () ,
'Table'[Column] = 2 , 2 ,
'Table'[Column] = 3 , 5 ,
'Table'[Column] = 5 , 10 ,
'Table'[Column] = 10 , 20 ,
BLANK() 
)

 

Enjoy 🙂

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

View solution in original post

3 REPLIES 3
ksnnidhi
Regular Visitor

yes its fixed thank for your help

TheoC
Super User
Super User

@ksnnidhi everything is possible in Power BI (except some things) but all things are possible... just not everything.

 

Create a calculated column like below:

 

Calculated Column = 

SWITCH (
TRUE () ,
'Table'[Column] = 2 , 2 ,
'Table'[Column] = 3 , 5 ,
'Table'[Column] = 5 , 10 ,
'Table'[Column] = 10 , 20 ,
BLANK() 
)

 

Enjoy 🙂

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

@ksnnidhi can you kindly look at my response to your solution and accept it as solution to ensure others can find it if they too run into a similar issue?

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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