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

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

Reply
FZOU
Helper IV
Helper IV

AddColumn

Hello,

I created a table with the following formula : 

 

Excess Stock FY =
GROUPBY (ADDCOLUMNS(DimDate,"Excess Stock",[Excess Stock]),
DimDate[FY],DimDate[FYDate],DimDate[Index],
"Excess Stock",
sumx(CURRENTGROUP(),[Excess Stock]))
 
which gave me this table : 
 
table.JPG
 
what i want to do and i can't achieve it is to add 3 more columns to this table from 3 dimensions: Product(ID),Region(ID),Team(ID), any idea please ? thank you 🙂
5 REPLIES 5
AllisonKennedy
Super User
Super User

@FZOU  What are your relationships between tables please? And what is the purpose of this table? Can you acheive the same using a table visual in the report?


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

@AllisonKennedy  I can't achieve what i want with a table visual i need to create this new one, for the moment there is no relation between tables,that's why i need to add those 3 columns to make relationship with other dimension.

@FZOU  Can you share sample of what your data looks like? we don't have enough info to go on to help you and need to understand how the data is related (even if there's no physical relationship) so that we can help you build the right formula.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

@AllisonKennedy i'm sorry i can't share a sample of data,i'm just looking to how add columns in my table inside or outside the mentionned formula

@FZOU  You don't need to share the actual data, but you can't create columns in the formula so we need to know what format they are in currently and how to connect them to the existing table within the formula. If there is no connection, you won't succeed with the formula so need to find the keys that relate your data:

 

https://excelwithallison.blogspot.com/search?q=relationships+it%27s+complicated 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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