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
id013
Helper V
Helper V

Data Modelling Help

Hi,

I have a bit of conundrum with a data model I'm working on. So it's a dashboard that shows sales values for different customer demographics. 

 

So I have a customer base table, that shows various combinations of customer attributes and their customer base size. 

 

For example:

 

AgeSexCityMunicpalityCustomer Base Size 
12-OctMVancouverKitsilano15

 

I have another table that shows these same attributes and the sales values of different products per day. 

 

For example:

DateAgeSexCityMunicpalitySales Product 1 Sales Product 2Sales Product 3Sales Product 4
May 1 202410 to 12MVancouverKitsilano1601
May 2 202410 to 12MVancouverKitsilano4581

 

I want to create a matrix that shows these customer attributes, and their respective sales values but also show how it compares to the customer base, for example for all the 10-12 year olds. 

DateAgeSexCityMunicpalityPopulationSales Product 1 Sales Product 2Sales Product 3Sales Product 4
May 1 202410 to 12MVancouverKitsilano151601
May 2 202410 to 12MVancouverKitsilano154581

 

The population is created using a sum of the population from the population table, while the sales values are taken from the sales table.

 

I can join these tables together using the attributes to join them. However I'm running into a problem with teh date. So basically depending on teh date range, certain attribute combinations didn't buy anything so they wouldn't be represented in the dataset. Which means the population wouldn't get added into the matrix for that date. So the simplest solution would be to just have those rows show up with 0 sales values so they would still be able to join with the population table, but I'm wondering if there's a better way to organize the data. This is how it comes to me but I may be able to request changes. 

 

I should also mention that they want personalized visuals, so I can't just create specific population measures as they have to be dynamic based on what fields are chosen in the personalized matrix.

 

Thanks

1 REPLY 1
lbendlin
Super User
Super User

lbendlin_0-1717369215756.png

Looks like Power Query was too eager to convert the text "10-12'  into a date.

 

 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

 

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.