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

Count Overlap by Date

Hello!

 

I have a list of Customer IDs, Dates, City, and State. I am trying to figure out how to show all the customers that have attended the first show date, the second show date, and then both dates in a bar graph or something equally digestible. I’d like to show both distinct and total if possible.

 

An exerpt of my data:

jenwho523_1-1632923869807.png

 

Things I have tried:

Creating a matrix with count of Date which works until I try to get it into a visualization.

 

Creating a column of show count:

Show Count = CALCULATE(COUNTA(Sheet1[Cust ID]),FILTER(Sheet1,Sheet1[Cust ID]=EARLIER(Sheet1[Cust ID],1)))

That didn’t quite give me what I need because I really want to show 1s and 0s so I can aggregate the counts into a graph.

 

Creating columns for show 1, show 2, and both:

Show 1 = CALCULATE(COUNTROWS(Sheet1),FILTER(Sheet1,Sheet1[Date].[Year]=2019))

But that gave me a total count not a row by row.

 

What I have in my head:

jenwho523_0-1632923698486.png

 

Thank you!

1 ACCEPTED SOLUTION

@jenwho523 

here is a workaround for you.pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
jenwho523
New Member

@ryan_mayu 

 

Yep! Here is the data pasted. And below is my expected output with dummy data. I don't have it based on the current data I have because I can't get there yet.

 

Cust IDDateCityState
1000000000001923/30/2019New OrleansLA
1000000000001923/30/2019New OrleansLA
1000000000009123/30/2019New OrleansLA
1000000000029763/30/2019New OrleansLA
1000000000029763/30/2019New OrleansLA
1000000000029763/30/2019New OrleansLA
1000000000429603/30/2019New OrleansLA
1000000000503523/30/2019New OrleansLA
1000000000503523/30/2019New OrleansLA
1000000000503523/30/2019New OrleansLA
1000000000619203/30/2019New OrleansLA
1000000000931203/30/2019New OrleansLA
1000000000967683/30/2019New OrleansLA
1000000000967683/30/2019New OrleansLA
1000000000967683/30/2019New OrleansLA
1000000000967683/30/2019New OrleansLA
1000000000967683/30/2019New OrleansLA
1000000000967683/30/2019New OrleansLA
1000000000967683/30/2019New OrleansLA
1000000000967683/30/2019New OrleansLA
1000000000967683/30/2019New OrleansLA
1000000000967683/30/2019New OrleansLA
1000000000967683/30/2019New OrleansLA
1000000000967683/30/2019New OrleansLA
1000000002296803/30/2019New OrleansLA
1000000002296803/30/2019New OrleansLA
1000000002296803/30/2019New OrleansLA
1000000002976003/30/2019New OrleansLA
1000000002976003/30/2019New OrleansLA
1000000003865443/30/2019New OrleansLA
1000000003974403/30/2019New OrleansLA
1000000003974403/30/2019New OrleansLA
1000000004484643/30/2019New OrleansLA
1000000004765443/30/2019New OrleansLA
1000000004949283/30/2019New OrleansLA
1000000005894887/31/2021New OrleansLA
1000000006652803/30/2019New OrleansLA
1000000006652803/30/2019New OrleansLA
1000000006848647/31/2021New OrleansLA
1000000007037283/30/2019New OrleansLA
1000000007037283/30/2019New OrleansLA
1000000009945123/30/2019New OrleansLA
1000000010232643/30/2019New OrleansLA
1000000010232643/30/2019New OrleansLA
1000000010232643/30/2019New OrleansLA
1000000010232643/30/2019New OrleansLA
1000000010562407/31/2021New OrleansLA
1000000012892807/31/2021New OrleansLA
1000000014180167/31/2021New OrleansLA
1000000014345283/30/2019New OrleansLA
1000000014345283/30/2019New OrleansLA
1000000014345283/30/2019New OrleansLA
1000000016744323/30/2019New OrleansLA
1000000016744323/30/2019New OrleansLA
1000000016744323/30/2019New OrleansLA
1000000019979043/30/2019New OrleansLA
1000000019979043/30/2019New OrleansLA
1000000019979047/31/2021New OrleansLA
1000000019988163/30/2019New OrleansLA
1000000020598247/31/2021New OrleansLA
1000000020598247/31/2021New OrleansLA
1000000021010083/30/2019New OrleansLA
1000000021322083/30/2019New OrleansLA
1000000021552003/30/2019New OrleansLA

 

jenwho523_0-1632926343317.png

 

@jenwho523 

here is a workaround for you.pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@ryan_mayu That will work! Thank you!

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




ryan_mayu
Super User
Super User

@jenwho523 

could you pls paste the sample data, not the screenshot? What's more, could you pls provide also provide the expected output which based on the sample data you provided? (the screenshot of chart in excel is also fine)





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.