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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
CoreyBi17
Regular Visitor

HOW TO: Create a measure to sum the count of first occurrences

Having trouble in creating a measure to count the first time occurrences against unique response IDs.

Using the data below, creating a measure to count how may times the different unique Response Results appeared as the first Request Response ID for a Request ID.

 

Example of some data,

TableA

CoreyBi17_1-1636759261131.png

 

 

The final result should be,

Pleased = 1

Displeased = 1

Hold = 2

 

The logic i'm trying to achieve, using "Hold" as the example,

 

distinct(Request ID),

min(Request Response ID)

distinctcount(Response Result = "Hold")

 

 

2 ACCEPTED SOLUTIONS

certainly, can do that,

 

Request IDRequest Response IDResponse DateResponse Result
200140011/02/2020 9:00:00 AMHold
200140021/02/2020 9:20:00 AMPleased
200240033/02/2020 9:00:00 AMPleased
200440043/02/2020 9:00:00 AMHold
200440053/02/2020 9:20:00 AMHold
200440063/02/2020 9:30:00 AMHold
200440073/02/2020 9:40:00 AMHold
200440083/02/2020 9:50:00 AMDispleased
200540095/02/2020 8:00:00 AMDispleased

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanyou @Ashish_Mathur  that worked

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
VahidDM
Super User
Super User

Hi @CoreyBi17 

 

Can you share a sample of your data in a table format to be able to copy and past that?

 


Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

certainly, can do that,

 

Request IDRequest Response IDResponse DateResponse Result
200140011/02/2020 9:00:00 AMHold
200140021/02/2020 9:20:00 AMPleased
200240033/02/2020 9:00:00 AMPleased
200440043/02/2020 9:00:00 AMHold
200440053/02/2020 9:20:00 AMHold
200440063/02/2020 9:30:00 AMHold
200440073/02/2020 9:40:00 AMHold
200440083/02/2020 9:50:00 AMDispleased
200540095/02/2020 8:00:00 AMDispleased

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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