Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hii,
I have a fSales and SalesDim tables.
fSales table have a DefaultDimension Id from SalesDim table.
In fSales table I have to add all DISPLAYVALUES as new columns based on NAME column from SalesDim table.
Example
in fSales need to add new columns like
Area = If(SalesDim[NAME] = "Area", SalesDim[DISPLAYVALUE])
Customer = If(SalesDim[NAME] = "Customer", SalesDim[DISPLAYVALUE])
What will be the DAX syntax for fSales table in Power BI?
SalesDim table
Thanks
Solved! Go to Solution.
Hii @v-danhe-msft
Thank you for your detailed reply.
1. There is One to many relation from SalesDim to fSales.
2. In fSales table I want to add SalesDim rows as columns.
3. Means in fSales table one row will show all related columns in SalesDim.
My requirement
What do you think the relation between two tables correct?
Thanks
Hi @ranaanees,
From your description, I guess you want to add the related ‘SalesDim‘[DISPLAYVALUES] column based on the ‘fSales’[DefaultDimension], if so, you could refer to below steps:
1.Add index column for the two tables respectively and apply it.
2.Create a new calculated column and now you can see the result.
Column = RELATED(SalesDim[Displayvalue])
You can also download the PBIX file to have a view.
Regards,
Daniel He
Hii @v-danhe-msft
Thank you for your detailed reply.
1. There is One to many relation from SalesDim to fSales.
2. In fSales table I want to add SalesDim rows as columns.
3. Means in fSales table one row will show all related columns in SalesDim.
My requirement
What do you think the relation between two tables correct?
Thanks
These are two of my tables. How to make relation ships between both?
Help Please...
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
211 | |
86 | |
64 | |
59 | |
56 |