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
Hamdan1234
Helper III
Helper III

New and Established Customer

I have two table with two dates. One table has createdate for customer coming for the first time. It has date for all customer with their IDS and first time they entered to business  The other table has sales of all the customers on different date from time to time. I want to get the column chart as shown below. asdsffff.PNG 

I am attaching both the tables along with the criteria. 

locationIDdateCreatedID
10217/06/2020658800
10229/10/2020658803
10209/12/2020658806
10229/03/2021658809
10217/06/2020658797
10317/06/2020658798
10316/06/2020658795
10302/07/2021658812
10311/06/2020658792
10302/12/2020658804
10322/06/2020658801
10316/06/2020658796
10412/04/2021658810
10411/06/2020658793
10422/12/2020658807
10417/06/2020658799
10411/06/2020658794
10617/05/2021658811
10607/12/2020658805
10622/02/2021658808
10613/10/2020658802
10624/02/2015164931

Second Table is:

Client IdSalesTicket IDStart Date time
1022000123311/2/2020
10213000123412/7/2020
10329404124421/11/2020
104928125529/12/2020
1045421572312/7/2020
1062112124519/4/2020
103443456202/8/2020
1021234152302/8/2020
106974456221/1/2020

The criteria is:

New Client is defined based on their Create Date (dateCreated) from first table.

Established Client is anyone who has a Create Date prior to respective year we are referring to

For example, if you were analyzing 2020, anyone with a Create Date in 2020 would be defined as a New Client and anyone with a Create Date in 2019 or earlier would be considered Established Client. I really need help with this. Please if anybody can help me out.

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Hamdan1234,

For your scenario,  you can create a calendar table with full dare records and use it as the axis of the chart. Then you can add a table with new and Established types and use it on your chart legend.

After these steps, you can write a measure expression to loop raw table records based on the current axis and legends.

My Favorite DAX Feature: SELECTEDVALUE with SWITCH | Winston-Salem Power BI User Group (pbiusergroup...

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Have you resolved this problem or do you still need help?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-shex-msft
Community Support
Community Support

Hi @Hamdan1234,

For your scenario,  you can create a calendar table with full dare records and use it as the axis of the chart. Then you can add a table with new and Established types and use it on your chart legend.

After these steps, you can write a measure expression to loop raw table records based on the current axis and legends.

My Favorite DAX Feature: SELECTEDVALUE with SWITCH | Winston-Salem Power BI User Group (pbiusergroup...

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.