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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Couldn't Load The Data For This Visual - OLE DB or ODBC error We couldn't fold the expression.

In PowerBI desktop I have a chart visual which is based on a measure. The measure is calculated from a direct query data connection to an Azure Database for PostgreSQL.

 

Within this report I have various slicers, such as a slicer to display visuals only for players from a specific game, from a specific group and players which have been created in a specific month.

 

The visual in question seems to have an issue with the month selection slicer. The visual is displaye correctly when the date slicer is selected to display data from the past 4 months (i.e. July, August, September, October 2020.) but it fails to display when the required month is earlier than that (i.e. June 2020 or earlier). 

 

There are two visuals which fail to display, both of which depend on this following measure:

 

CummulativePlayers = 
CALCULATE(
COUNTROWS ('public dim_players'),
    FILTER (
        ALLEXCEPT('public dim_players', 'public dim_date'[date]),
        'public dim_players'[creation_date] <= MAX('public dim_date'[id]) &&
        (
            ISBLANK ( 'public dim_players'[deletion_date] ) ||
            'public dim_players'[deletion_date] > MAX('public dim_date'[id])
        )
    ),
    USERELATIONSHIP('public dim_players'[creation_date], 'public dim_date'[id]),
    USERELATIONSHIP('public dim_players'[deletion_date], 'public dim_date'[id]),
    USERELATIONSHIP('public dim_players'[game_id], 'public dim_games'[game_id]),
    USERELATIONSHIP('public dim_players'[group_id], 'public dim_groups'[group_id])
) + 0

 

 

Other visuals in the report which depend on the measures calculated using the data dimension table display correctly. 

 

Is this an issue that can be caused by the measure? If so, can the above measure be created in a different, simpler way?

2 REPLIES 2
Anonymous
Not applicable

Bumping this as I haven't been able to figure it out yet and the issue is persisting. Will any additional information to mytop post be helpeful?

Hi @Anonymous ,

 

What is the error message provided by the visual?

It is difficult to find the cause of the error if we cannot see the data model.

 

Best regards,
Lionel Chen

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors