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
Noob101
New Member

Change column calculation

I have data with calculated columns in power bi, but I need to change one of the values in the calculation from a certain point, without it affecting the previous data within that same column. Is this even possible?? or should I simply create another report from the using the new calculation? 

1 ACCEPTED SOLUTION
edhans
Super User
Super User

There is only one formula per column. It isn't like Excel where you can specify rows for different formulas.

 

You could change the formula to be the below, which would use your old formula on or before June 15, 2022, and the new formula if it is after June 15, 2022.

VAR varOldFormula = PutYourOldFormulaHere
VAR varNewFormula = PutYourNewFormulaHere
RETURN
IF(
   TableName[Date] > DATE(2022,6,15),
   varNewFormula,
   varOldFormula
)

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

2 REPLIES 2
Noob101
New Member

thank you very much will give it a try.

edhans
Super User
Super User

There is only one formula per column. It isn't like Excel where you can specify rows for different formulas.

 

You could change the formula to be the below, which would use your old formula on or before June 15, 2022, and the new formula if it is after June 15, 2022.

VAR varOldFormula = PutYourOldFormulaHere
VAR varNewFormula = PutYourNewFormulaHere
RETURN
IF(
   TableName[Date] > DATE(2022,6,15),
   varNewFormula,
   varOldFormula
)

 



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.