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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Visual taking long (using DAX from SQLBI site)

My visual takes a lot of time to load...

 

its a table with 2 columns:

 

- first column is this one 

https://www.sqlbi.com/articles/handling-customers-with-the-same-name-in-power-bi/

 

The other column is just a DISTINCTCOUNT:

CALCULATE(

    DISTINCTCOUNT(Fact[K_Parent_Customer])

    ,FILTER(Fact,Fact[NetRevenue] <> 0

    )

)

 

Is SQLBI's recommendation killing my visual?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

According to your statement, I think your issue should be caused that your calculated column from SQLBI will always create a rank in variable table and then repet adding space in your result by rank.

 

So each time you refresh your report , Power BI will calculate this column and your data size is too large, so it will take a lot of time.

 

I you try this in Power Query Editor, when you load data into Desktop, Power BI will remove the space in the end automaticlly.

 

So I suggest you to add the customer code into your visual to expand your visual and then turn off the text wrap function and set the column width of customer code column to 0.

 

vrzhoumsft_0-1703754331750.png

 


Best Regards,
Rico Zhou

 

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

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

According to your statement, I think your issue should be caused that your calculated column from SQLBI will always create a rank in variable table and then repet adding space in your result by rank.

 

So each time you refresh your report , Power BI will calculate this column and your data size is too large, so it will take a lot of time.

 

I you try this in Power Query Editor, when you load data into Desktop, Power BI will remove the space in the end automaticlly.

 

So I suggest you to add the customer code into your visual to expand your visual and then turn off the text wrap function and set the column width of customer code column to 0.

 

vrzhoumsft_0-1703754331750.png

 


Best Regards,
Rico Zhou

 

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

 

amitchandak
Super User
Super User

@Anonymous , In case [NetRevenue] is measure

 

Countrows(filter(Values(Fact[K_Parent_Customer]), [NetRevenue] <> 0))

 

if [NetRevenue] is column

 

Countrows(Summarize(filter( Fact, Fact[NetRevenue] <> 0), Fact[K_Parent_Customer]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.