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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ramzez
Frequent Visitor

Help with creating a loop

Hi all,

 

I need help in creating a loop.

 

I have this kind of a table:

 

ramzez_0-1695711328751.png

 

 

I need to check what is the date (starting from today) when either the sum of the persons Daily_sum values from the previous 30 days is less than 3000 or the “Date 1” date is in the past? The result should be the date as a String and if neither happens in the next 14 days, then the result should be a String “next 14 days OK”.

 

I’m guessing a loop running 14 times is the only way to do this but I’ve never used one.

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.