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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.