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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.