One visual in the PowerBI service does not render correctly and the following error is displayed:
Couldn't load the data for this visual
Couldn't retrieve the data for this visual. Please try again later.
Please try again later or contact support. If you contact support, please provide these details.
This only occurs in the PowerBI Service; the visuals are correctly displayed in the desktop version.
The data is from a measure calculated from a direct query to an Azure for PostgreSQL database. There are other visuals in the report, reading from not only the same database, but from the same table which do render correctly.There is also another visual with essentially the same measure calculated from a different table which does render correctly.The measure which seems to cause the issue is as follows:
AllPlayers =
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
A visual based on the same measure run on a 'public dim_moderators' instead of 'public dim_players' table however displays just fine. Visuals based on other measures involving the public dim_players table also work just fine within the report.
Any ideas what could cause this issue?
If it is the measure itself, could this measure be created in a simpler, more efficient manner?