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

strange behaviour SUMMARIZECOLUMNS

good day

why this measure is working

EVALUATE

    CALCULATETABLE (
        SUMMARIZE (
           Balance_Facts_Final_View,
            VTime[PK_Date],
            GEO[id],
            Balance_Facts_Final_View[ClientID],
            "Measure_ID", 10001,
            "Measure", "КБ Факт РасчСчета",
            "SummaNP", ROUND ( DIVIDE ( SUM ( Balance_Facts_Final_View[Summa_np_round] ), 1000 ), 0 )
        ),
        F101_dimension[2nd_level] = "расчетные счета",
        VTime[PK_Date] = DATE ( 2020, 4, 1 ),
        Balance_Facts_Final_View[Category_Summa] = "Остаток"
    )

but this measure is not working

EVALUATE
        SUMMARIZECOLUMNS (
            VTime[PK_Date],
            GEO[id],
            Clients_Dim_PP[ClientID],
            F101_dimension[2nd_level],
            Balance_Facts_Final_View[Category_Summa],
            filter (F101_dimension, F101_dimension[2nd_level] = "расчетные счета"),
            filter (Balance_Facts_Final_View, Balance_Facts_Final_View[Category_Summa] = "Остаток"),
            filter ( VTime, VTime[PK_Date] = DATE ( 2020, 4, 1 ) ),
             "Measure_ID", 10001,
            "Measure", "КБ Факт РасчСчета",
            "SummaNP",  ROUND ( DIVIDE ( SUM ( Balance_Facts_Final_View[Summa_np_round] ), 1000 ), 0 )
)

1 ACCEPTED SOLUTION

Hey @Anonymous ,

 

one of the reasons could be that SUMMARIZE implicitly creates a context transition, SUMMARIZECOLUMNS does not.

 

Without more knowledge about your data model, it's very difficult to provide more information. Please refer to these articles by the guys from sqlbi:

Hopefully this helps to tackle your challenge.

 

Regards,

Tom

 

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , what is the issue.

Anonymous
Not applicable

1-st measure with summarize works very quickly and 2-nd with summarizecolumns is never ending

 

Hey @Anonymous ,

 

one of the reasons could be that SUMMARIZE implicitly creates a context transition, SUMMARIZECOLUMNS does not.

 

Without more knowledge about your data model, it's very difficult to provide more information. Please refer to these articles by the guys from sqlbi:

Hopefully this helps to tackle your challenge.

 

Regards,

Tom

 

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.