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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
danning1234
Advocate I
Advocate I

Could not load the data for this visual : Service Unavailable

Hi,

 

I have a report that get data from Dataset.

For certain visuals, i got the error message like below.

danning1234_1-1616097324855.png

I copy paste the same visual from the report to the dataset, and it works. Takes time to run the query but works.

 

Any ideas on solutions?

 

I try to make the measure more simple but it is not evident.

I am guessing that it is due to the time out on query running, if so how can i change it?

 

Thanks for any help.

2 REPLIES 2
amitchandak
Super User
Super User

@danning1234 , Can you share the measure and error details

Hi,

 

Here are the measures:

 

PortfNbDerived =

CALCULATE(
DISTINCTCOUNTNOBLANK(Data[Cust_Nb]) + 0 //when blank show 0
, LASTDATE(DimCalendar[Date_EN]) // is table of balance
, FILTER(Data,[Amnt] > 0) // when the amnt is > 0, [Amnt] is a measure, from the balance data table too
, KEEPFILTERS(Data[IndCurrent] = TRUE()) // a filter
)

 

PortfNbAverage =

AVERAGEX (
VALUES ( DimCalendar[Month_FFFF_MM] )
, [PortfNbDerived]
)

 

Measures are not complicated.

It returns the result on Desktop without problem, but the performance is bad.

Once publish the data model to the Service, then the measure no longer works on the report when"Get data from dataset". It shows the error message like in the post.

 

Any idea?

Thank you.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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