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

Foreach

Hi,

 

I need help for do a foreach. I want to calculate week number foreach send number but i have any times the send number so i want calculate the week number just one time foreach send number.

 

It's my formula but now i want to do this for send number

 

Délain livraison en semaine = IF('Expédition'[Délais]="RETARD";ROUNDDOWN('Expédition'[Interval]/-7;0))

1 ACCEPTED SOLUTION

Hi @AlexGallet01,

 

You can use Find() function to create a calcualted column like this:

 

Column = IF(FIND(160170,'Table1'[Column1],5,0)>0,-2,BLANK())

 

q5.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
AlexGallet01
Helper IV
Helper IV

Basically I have an expedition with several different lines. Everything with the same difference but since it is the same expedition I want to retrieve only one of the retuned values.

 

100-160170-011 -> -2

100-160170-025 -> -2

 

I want for 160170-> -2

Hi @AlexGallet01,

 

You can use Find() function to create a calcualted column like this:

 

Column = IF(FIND(160170,'Table1'[Column1],5,0)>0,-2,BLANK())

 

q5.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-qiuyu-msft
Community Support
Community Support

Hi @AlexGallet01,

 

Would you please share some sample data and expected results for our analysis?

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AlexGallet01
Helper IV
Helper IV

I want to do a foreach to calculate the number of weeks of delays in sending by number of shipments knowing that this number exists several times in my table.

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.