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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Adding columns

Good morning,

 

I'm working on creating a report that shows daily sales broken down by employee, date, and location. I have a table that has all of this already broken down, but I need to calculate adjusted net sales from a new table that has adjustments. I tried to do this with a new measure: Adjusted net Sales = Sum(Query1[net_sales) + sum(Adjustments[amount]), and while it does add/remove the adjustments based on the employee, it is performing the adjustment on each entry for the employee instead of just that date and location. I'm pretty sure this is a simple thing I'm missing, but I'm still learning PowerBI so its a matter of me not fully understanding expressions.

 

For reference, both tables have the following columns: Date, Location, and Employee. The query1 table also has a net_sales, whereas the adjustment table has an amount column.

 

Any help is greatly appreciated.

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I apologize but I actually figured it out while I was putting a test file together. My file was conflicting the two tables in regards to the date. I created a table that was specifically a list of dates and added relationships from both original sheets and this appears to have solved my problem.

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , You formula should work fine, all three dimensions Date, Location, and Employee. It should just depend on what is used in visual.

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I apologize but I actually figured it out while I was putting a test file together. My file was conflicting the two tables in regards to the date. I created a table that was specifically a list of dates and added relationships from both original sheets and this appears to have solved my problem.

Hi @Anonymous  ,

 

I'm glad that you have solved your issue by yourself. Would you mark useful reply as answer to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Anonymous
Not applicable

My apologies as I've been off for a few days.

Anonymous
Not applicable

Let me create a sample file and I'll upload it.

 

Thanks,

Helpful resources

Announcements
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!

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.

Top Solution Authors