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
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
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.