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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
erbabu
New Member

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
erbabu
New Member

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
New Member

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors