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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
Community Champion
Community Champion

@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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.