cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
Community Champion
Community Champion

@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
Community Champion
Community Champion

@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

TheoC
Community Champion
Community Champion

@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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors