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
cristianj
Helper IV
Helper IV

need help counting and concatenate how many times an id appear in a selected timeframe

Hello, 

I need to count how many time an id appear in a selected timeframe, i wa thinking of making a new measure 

Nr de comenzi in perioada selectata = calculate(count(ordersSM[buy_order_id]),filter(ordersSM,ordersSM[seller_id]=[seller_id])),
and then i need to concatenate something like buy_order_id from date_of_buy_order_id, next_buy_order_id from next_date_buy_order_id...
If you have any solutions would be great thank you
2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @cristianj ,

 

Please provide some sample data.

 

user_idid 

data(DateTime)

(dd/mm/yyyy hh:mm)

New Column(next id of the user_id with datediff<24)

1100101/09/2022 08:00BLANK
2100201/09.2022 09:00BLANK
3100301/09/2022 10:00Blank
41004

01/09/2022 11:00

Blank
5100501/09/2022 12:00Blank
1100601/09/2022 16:001001
2100701/09/2022 17:00 1002
1100805/09/2022 08:00Blank
41009

05/09/2022 08:00

 

Blank

 

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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