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
MontsePuig
Frequent Visitor

Add new column or new table? problem with date column

Hi everyone! Smiley Happy

I need to add a new data in my Dashboard, the sales targets by category (office and Horeca goals), I want to compare the orders vs Goals for Month and MTD. I have tried two options without success.

1.- New Column. I have tried adding a new column in the same table with the condition option "if the month of the year is 1 then it corresponds to X". The result is the sum of all rows (several) of the month, this is false.m Smiley Sad
2.- New Table: I have uploaded the following table, the problem appears in the relationships.

Goals can be calculated by day or by month. The problem I don't understand is that in the "data orders" I have different rows with the same day. Smiley Sad


Can anybody help me?

Thank you very much.

 

issu-PB.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@MontsePuig,

Create a date table following the instructions in this blog, then create the following columns in your original table.

Column = CALCULATE(SUM(Table[Orders]),ALLEXCEPT(Table,Table[HOvsOF]))
MTD = TOTALMTD(SUM(Table[Orders]),'Date'[Date],ALLEXCEPT(Table,Table[HOvsOF]))
1.JPG

If the above steps don't help, please share sample data of your original table that can be copied and pasted, also post expected result in table format.

Regards,
Lydia

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@MontsePuig,

Create a date table following the instructions in this blog, then create the following columns in your original table.

Column = CALCULATE(SUM(Table[Orders]),ALLEXCEPT(Table,Table[HOvsOF]))
MTD = TOTALMTD(SUM(Table[Orders]),'Date'[Date],ALLEXCEPT(Table,Table[HOvsOF]))
1.JPG

If the above steps don't help, please share sample data of your original table that can be copied and pasted, also post expected result in table format.

Regards,
Lydia

Lydia,

Thank you very much. Smiley Happy

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.