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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Calculate same value but in different dates

Hello everyone,

 

Thank you for reading my query. Currently, I'm counting the location of event launching by different date but my DAX is always counted only unique location name instead of diffrent date as you can see the image below. You will notice that there is one location which had event in 2 dates, but my DAX still count only 4 instead of 5

powerbi_calculate between dates.JPG

This is my DAX, my table Date also has Start and End Date columns.

powerbi_calculate between dates - Copy.JPG

And this is my wish outcome: It will count as 5 if the location has diffrent event's date.

powerbi_calculate between dates - Copy (2).JPG

 

I hope you can help me to solve my problem. Thank you again so much.

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello @amitchandak ,

 

I attached the table below for you to refer. Assume we will count the event type (Column C) is Group Detail (F2F) with HCO (Column B) in different date (Column A). For example, HCO 4 will be count as 4 following by different dates. Thank you.

 

Date               HCO        Event Type

01/07/2022HCO 1Detail (F2F)
02/07/2022HCO 2Detail (F2F)
03/07/2022HCO 3Detail (F2F)
04/07/2022HCO 4Group Detail (F2F)
05/07/2022HCO 5Group Detail (F2F)
06/07/2022HCO 6Detail (F2F)
07/07/2022HCO 7Detail (F2F)
08/07/2022HCO 8Detail (F2F)
09/07/2022HCO 9Detail (F2F)
10/07/2022HCO 10Group Detail (F2F)
11/07/2022HCO 4Group Detail (F2F)
12/07/2022HCO 5Group Detail (F2F)
13/07/2022HCO 4Group Detail (F2F)
14/07/2022HCO 4Group Detail (F2F)
15/07/2022HCO 5Group Detail (F2F)
16/07/2022HCO 16Remote Detail
17/07/2022HCO 17Detail (F2F)
18/07/2022HCO 18Detail (F2F)
19/07/2022HCO 19Detail (F2F)

 

 

 

@Anonymous , I think I am still not clear of that

 

Try like

 

countx(filter(Table, Table[Event Type] = "Group Detail (F2F)" ) , [Date])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello @amitchandak , thank you for your reply but it can't help for my solution. As you can see the image  below when I choose one HCO, next column appears 2 dates so it means this location has 2 Group Detail event. And I'm stuck for my DAX since it only count as 1 event (the small box on the left).

gd count.JPG

 

For the table I gave you on above. You can see the HCO 4 has 4 Group Detail (F2F) by different dates:

 

Date               HCO        Event Type

04/07/2022HCO 4Group Detail (F2F)
11/07/2022HCO 4Group Detail (F2F)
13/07/2022HCO 4Group Detail (F2F)
14/07/2022HCO 4Group Detail (F2F)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors