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
Anonymous
Not applicable

Tune a measure that use Summarize

Hi,

 

I have a measure that use a summarize , this query run slowly and i want to tune it : 

 

CALCULATE (
    [Cnt],
     SUMMARIZE (
        Sales,
        DimProduct[Product_id]
    )
    ,SUMMARIZE (
        Forecast,
        DimProduct[Product_id]
    )
)

 

The definition of the measure Cnt as bellow :

Cnt :=  DISTINCTCOUNT ( Invoice[CustoID] )

 

There are any solution to optimize that measure ? How can i write the query differently without Summarize

Thanks 


3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

We can only discuss here sorry, you can make up a data similar to your table. And the desired output.


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ,

Your [Cnt ] measure is DISTINCTCOUNT,and What is required by the second measure? Do you have any examples to explain? Since we do not know the relationship between DimProduct, Forecast, Sales and Invoice, we are not clear about what you want to output with this measure? It's better to share a simple example if you can.


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @v-yalanwu-msft ,
The business requirement is quetting the number of Unique Customers which who brought products that appear in the Sales and Forecast table

 

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.

Top Solution Authors