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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.