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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
buck1327
Frequent Visitor

Create table visualization using two different columns from the semantic model data

Hello,

 

I am using Power BI Service to build a table visualization A based on existing semantic model, whcih has columns of "Orig_City", "Dest_City", "Sales", "Date"

Is it possible to build the table visualization A with City(including Orig_City and Des_City), Total_Sales, i.e append Orig_city, Total_sales on top of Dest_city, Total_sales, based on some filters?

 

Question #2, if City Total_Sales table visualization A is successfully built, is it possible to reference City, Total_Sales data in table visualization B which on the same page? so table visualization B will have City,  New_sales, Total_Sales( referencing from table visualization A)?

 

Thank you for your help

 

1 ACCEPTED SOLUTION
collinq
Super User
Super User

Hey @buck1327 ,

 

In Power BI Service, you can go to the EDIT option and then go to Data Model.  And then, right click on the Model and select Calculated Table.  Then, you can put in the appropriate DAX to do what you want.

You can tweak this as you need, but this is a good first pass for you DAX:
Combined_City_Sales =
UNION (
SELECTCOLUMNS (
YourTableName,
"City", YourTableName[Orig_City],
"Total_Sales", YourTableName[Sales]
),
SELECTCOLUMNS (
YourTableName,
"City", YourTableName[Dest_City],
"Total_Sales", YourTableName[Sales]
)
)

 

 

As for Question 2, I think that you will be able to link or otherwise refer to the fields that you want.




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Hi @buck1327,

Thanks for reaching out to the Microsoft fabric community forum.

 

As you went through the response given by @collinq, were you able to solve your issue? If yes then please mark the helpful response as solution.

 

I would also take a moment to thank @collinq and @hansontm for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

 

If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

Best Regards,
Hammad.
Community Support Team

 

If this post helps then please mark it as a solution, so that other members find it more quickly.

Thank you.

buck1327
Frequent Visitor

Thank you for help. The same city (e.g. Boston) can only be in either orig_city and Dest_city.  other than that, your mockwup data is very good

collinq
Super User
Super User

Hey @buck1327 ,

 

In Power BI Service, you can go to the EDIT option and then go to Data Model.  And then, right click on the Model and select Calculated Table.  Then, you can put in the appropriate DAX to do what you want.

You can tweak this as you need, but this is a good first pass for you DAX:
Combined_City_Sales =
UNION (
SELECTCOLUMNS (
YourTableName,
"City", YourTableName[Orig_City],
"Total_Sales", YourTableName[Sales]
),
SELECTCOLUMNS (
YourTableName,
"City", YourTableName[Dest_City],
"Total_Sales", YourTableName[Sales]
)
)

 

 

As for Question 2, I think that you will be able to link or otherwise refer to the fields that you want.




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




I appreciate your help, but I am not sure where is the EDIT option on Service, any screenshot if possible

Anonymous
Not applicable

Hi @buck1327,

Thank you for following up with the conversation. In Power BI Service, there is no direct "Edit" option for Data Model changes like it is in Power BI Desktop. Your confusion likely comes from the fact that calculated tables can only be created in Power BI Desktop and then published to the Power BI Service. Power BI Service you can edit visuals and filters, but not modify the data model like creating calculated tables directly. You must edit the data model in Power BI Desktop, create the calculated table, and then publish the report to Power BI Service.

 

If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

Best Regards,
Hammad.
Community Support Team

 

If this post helps then please mark it as a solution, so that other members find it more quickly.

Thank you.

 

Anonymous
Not applicable

Hi @buck1327,

As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.

If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.


If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.
Thank you for your patience and look forward to hearing from you.

Anonymous
Not applicable

Hi @buck1327,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution so that other community members can find it easily.


Thank you.

Anonymous
Not applicable

Hi @buck1327,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

hansontm
Resolver I
Resolver I

Hello,

 

To clarify the first part, is this what you're looking for? (Mockup in Excel)

 

hansontm_1-1741378540115.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.