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
sd782
Frequent Visitor

AvgSales Measure causes to create a cross join of the Dimension columns

When i use a table visual and have the avg measure with the Category and City dimension, it creates a cross join to show all possible combinations of the dimensions which is causing an issue.

 

Does any one know why this happens and how to avoid this ?

dimension_crossjoin.jpg
Any help is appreciated.

2 REPLIES 2
Anonymous
Not applicable

Hi @sd782

 

If possible please share your data and the final output expected on one drive or google drive and share the link to find a solution.

 

Cheers

 

CheenuSing

Hi @Anonymous

 

Please find the pbix file located at: https://1drv.ms/u/s!AnD3xad1CmGkaf1PY6XvyNtDClE

Let me know if you are able to access it.

 

What i am trying to create is a table visual which has the following columns:

City | Category | TotalSales(Measure) | AvgSalesByCategory(Measure)
 

table_visual.jpgIn the first 3 columns, i want to see the Total Sales amount for every distinct combination of City and Category and i want the 4th column to show me the Average Sales By All Categories (which would be a constant value and should repeat on all rows).

 

But what i currently observe is that i do not get an inner join of City and Category columns on the table visual, but a cross join with all the possible combinations of City-Category and Blanks for TotalSales for the wrong combinations.

 

Please let me know if you need more info.

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.