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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Timovb
Regular Visitor

DAX errors after refreshing data

I have a DAX formule that works perfectly fine, untill I refresh the data. In the dataset, there are open- and closedates for servicetickets. I need to calculate the leadtime using only business hours. I have created a DAX that does this just fine, but i'm working with data that is constantly renewed becease tickets keep coming in. therefore the closing date is sometimes not filled in yet, becease the ticket is still open. I want to refresh the data once a day, but it errors after i refresh. It says: "Arguments in GenerateSeries cannot be blank". I have already got it working again by removing all empty cells, but i also want the active leadtime for the tickets that are still on ''open''. How can i adjust the DAX? Or is there another way i can make the refresh work without adding extra steps like removing the empty cells?

 

Here is the dax: 

DAX.png

Its in dutch because im from the netherlands, so heres the translation for the green text in the following points

15: Each minute between start- and enddate

16: Filter weekends

17: time between workdays

20: Count every valid minute as 1

 

Please let me know if I provided enough information.

1 ACCEPTED SOLUTION
v-tianyich-msft
Community Support
Community Support

Hi @Timovb ,

 

The main reason for this is that GENERATESERIES can't accept null values, perhaps you could try converting the output using SELECTCOLUMNS

Generating a series of numbers in DAX - SQLBI

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

1 REPLY 1
v-tianyich-msft
Community Support
Community Support

Hi @Timovb ,

 

The main reason for this is that GENERATESERIES can't accept null values, perhaps you could try converting the output using SELECTCOLUMNS

Generating a series of numbers in DAX - SQLBI

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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