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

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

Reply
T_JF2022
Frequent Visitor

Replace table columns without power query

I have a table that shows the sales of a fiscal year, divided into months on the basis of orders. This turnover is then subdivided again on customer groups and overall result.
Now I want to replace a column of this table, let's say february, with values from an additional file, without having to edit the base file in the power query.

i.e. total sales in 12 monthly columns, where 11 months come from file 1 and 1 month from file 2. the whole thing should take place in the visualization.

 

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @T_JF2022 ,

 

Is there a relationship between the two tables? Please describe your model in details and paste some sample data.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523 


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Adescrit
Impactful Individual
Impactful Individual

You could use an IF statement I think. So if you have a Calendar / Date table that is connected to both 'Table 1' (from file 1) and 'Table 2' in your data model. In the Calendar table would be a Month column that contains either the name of the month or the month number - whatever you see fit. Then the DAX you could apply to carry out this calculation would be something like:

 

Total Sales =
IF (
    'Calendar'[Month] = "Feb",
    SUM ( 'Table 2'[Sales] ),
    SUM ( 'Table 1'[Sales] )
)

 

 


Did I answer your question? Mark my post as a solution!
My LinkedIn

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.