cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
erbabu Frequent Visitor
Frequent Visitor

How to: using one column (customer) for multiple date columns in a fact table

Hi

 

I have the below table.

 

Customer, DateSold, first-purchasedate-by-customer (calculated column based on DateSold)

 

I have associated DateSold and first-purchasedate-by-customer to DateDim table for getting YearMonth (yyyymm).

 

I am looking for a good way to create visualization of stacked bar / side-by-side bar:

yyyymm, distinct-count(Customer per yyyymm of DateSold), distinct-count(Customer per yyyymm of first-purchasedate-by-customer)

 

Any suggestions?

 

I am able to create a bar graph with yyyymm and either one column but not the stacked bar.

 

PS: new to DAX & PowerBI

1 ACCEPTED SOLUTION

Accepted Solutions
erbabu Frequent Visitor
Frequent Visitor

Re: How to: using one column (customer) for multiple date columns in a fact table

Update:

I was able to achieve it by creating a new table with a copy of data from parent table (first-purchasedate-by-customer,Customer) and associating this table first-purchasedate-by-customer to DateDim table & created visualization.

View solution in original post

1 REPLY 1
erbabu Frequent Visitor
Frequent Visitor

Re: How to: using one column (customer) for multiple date columns in a fact table

Update:

I was able to achieve it by creating a new table with a copy of data from parent table (first-purchasedate-by-customer,Customer) and associating this table first-purchasedate-by-customer to DateDim table & created visualization.

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 55 members 1,257 guests
Please welcome our newest community members: