Forum Discussion

aaa12's avatar
aaa12
Helper II
1 year ago
Solved

Getting Date Error in PowerBIIntegration

Hello, I embeded a PowerApp in my PowerBI dashboard. I am receiving the following error.   This only happens when there are null values in the Due_Date field. I tried creating another column...
  • aaa12's avatar
    1 year ago

    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")
        )