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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
aaa12
Helper II
Helper II

Getting Date Error in PowerBIIntegration

Hello,

I embeded a PowerApp in my PowerBI dashboard. I am receiving the following error.

aaa12_0-1726174389523.png

 

This only happens when there are null values in the Due_Date field. I tried creating another column where Due_Date was converted into Text to get past the date format issue but I still get the same error.

 

Next I attempted to add a condition to check for blank values and changed this code:

 

 

xAppFlow.Run(
    JSON(
       [@PowerBIIntegration].Data,
        JSONFormat.IncludeBinaryData
    )
);
    Notify(
        "Your request has been submitted",
        NotificationType.Success,
        5000
    );
    Reset(Comments);
    Reset('Request Type');

 

 

to this code...

 

ClearCollect(
    ProcessedData,
    ForAll(
        [@PowerBIIntegration].Data,
        {
            'ID': 'ID',
            'Operating System': 'Operating System',
            V_id: v_id,
            'Created at': 'Created at',
            'Due Date': If(IsBlank('Due Date'), DateValue(" "), 'Due Date')
        }
    )
);

// Run the Power Automate flow with the processed data
xAppFlow.Run(
    JSON(
        ProcessedData,
        JSONFormat.IncludeBinaryData
    )
);
    Notify(
        "Your request has been submitted",
        NotificationType.Success,
        5000
    );
    Reset(Comments);
    Reset('Request Type');

 

 

I tried the above code by leaving the blank values as " " or by changing them to "1/1/9999" but none of my attempts worked. Asking the community for ideas to get past this error.
Note: All of these codes work when Due_Date values are not NULL.

1 ACCEPTED SOLUTION
aaa12
Helper II
Helper II

I was able to resovle this. As inelegant as it is, I'm sharing the solution in case it helps others. 

 

Basically, I created a measure to handle blank values and passed it through to power apps and it worked.

 

m_DueDateText = 
VAR DueDateValue = MAX(dashboard[due_date])
RETURN
    IF (
        ISBLANK(DueDateValue),
        "",
        FORMAT(DueDateValue, "YYYY-MM-DD")
    )

 

 

View solution in original post

4 REPLIES 4
aaa12
Helper II
Helper II

I was able to resovle this. As inelegant as it is, I'm sharing the solution in case it helps others. 

 

Basically, I created a measure to handle blank values and passed it through to power apps and it worked.

 

m_DueDateText = 
VAR DueDateValue = MAX(dashboard[due_date])
RETURN
    IF (
        ISBLANK(DueDateValue),
        "",
        FORMAT(DueDateValue, "YYYY-MM-DD")
    )

 

 

Hi Team,

Not sure if I can post my question here but its related to PowerBIIntegration.Data in powerapp.

I have powerbi report in pbi desktop where I am pulling table list from excel file. Table list has Chnage Number as key field. I have used powerApp visual using Change Number from same tabel list. It navigated me to powerapp studio and I created form using same excel list as my data source. In that form ,I want record to be selected to update other fields related to selcted change number. For that I am using Lookup item using PowerBIIntegration.Data but its not populating any data.

 

I am uisng below function in Item - LookUp('Manual3',Title=First(PowerBIIntegration.Data).Change Number) 

Manual3 is datasource (online excel file) for form. After PowerBIIntegration.Data,its not populating any column in function.

 

Not sure what I am misisng here. Error says Chnage number not valid/not found

 

ashish_18_0-1731733246702.png

 

Can somebody please help me here. Really appreciate your input

v-stephen-msft
Community Support
Community Support

Hi @aaa12 ,

 

Thanks for reaching out to this forum.

Did you get this error when you opened the dashboard on Power BI mobile apps? Is there an attempt to open it in Power BI Desktop or Power BI Service?

 

Best Regards,

Stephen Tao

 

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

 

hey stephen - yes, I get the error when I am in Power BI and launch Power Apps and submit data/request. I get the same error whether I open it in Power BI Desktop or PowerBI Services.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Top Solution Authors