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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
jatneerjat
Helper V
Helper V

visuals are loading very slow in power bi

Hi,

@Greg_Deckler @Seth_C_Bauer @v-yuezhe-msft

 

I have a power BI report in which i am fetching data through analysis services and for that i have created measures in analysis service.Now there are some 5 'card with states' visuals which takes time while loading so what could be the reason for slow visual load ?how can i make it to load fast?

 

1.PNG 

 

Sometimes this visuals(Line Chart) also took time to load

 

2.PNG

 

Thanks

3 REPLIES 3

@jatneerjat Are you using Direct Query in your AS model? Do you have issues in both the Desktop and the Service?


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Hi @Seth_C_Bauer

 

I am using direct query.

Yes the issue persist in both pbix and service but in service it usually takes longer than desktop.

it takes around 2 to 3 mins sometimes 5 minutes for some cards.

 

and the measures i am using in cards are:

 

AvgVal:= IF(HASONEVALUE(Table1[Id])
,SWITCH(VALUES(Table1[Id])
,1,[AvgColumn1]
,2,[AvgColumn2]
,3,[AvgColumn3]
)
)


AvgColumn1:= AVERAGEX(
KEEPFILTERS(VALUES('viewUser1'[UId])),
CALCULATE(DISTINCTCOUNT('viewApp1'[ApplicationId]))

 

AvgColumn2:= AVERAGEX(
KEEPFILTERS(VALUES('viewUser2'[UId])),
CALCULATE(DISTINCTCOUNT('viewApp2'[ApplicationId]))

 

AvgColumn3:= AVERAGEX(
KEEPFILTERS(VALUES('viewUser3'[UId])),
CALCULATE(DISTINCTCOUNT('viewApp3'[ApplicationId]))

@jatneerjat Direct Query is going to be the slowest possible connection. The performance issues will need to be mitigated on the database side... I would assume you need the most up to date information and that is why you are using that method. If not, I would recommend switching to Import.

If you need to stick to DQ, optimize the query, and reduce the amount of information if possible.

On top of that, you are doing row by row calcs here and those are going to be super slow.


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors