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
karlo
Frequent Visitor

Summarize no working, what is the problem?

Hi!,

 

I'm trying to get a cumulative value but I can't, the DAX code is:

 

--------------------------

TABLE_A =
    VAR TABLE_X = UNION(CALCULATETABLE(SUMMARIZE(TABLE_1; TABLE_1[ID]; TABLE_1[m00]); TABLE_1[m00]= 1);
                                      CALCULATETABLE(SUMMARIZE(TABLE_1; TABLE_1[ID]; TABLE_1[m01]); TABLE_1[m01]= 1);
                                      CALCULATETABLE(SUMMARIZE(TABLE_1; TABLE_1[ID]; TABLE_1[m02]); TABLE_1[m02]= 1))
     RETURN(SUMMARIZE(TABLE_X ;[ID];"TOT";SUM([m00])))

 

Problem: RETURN(SUMMARIZE(TABLE_X ;[ID];"TOT";SUM([m00]))).... Cannot identify the table that contains the column [m00]

--------------------------

TABLE_X is:

ID

m00

1

1

1

1

1

1

2

1

2

1

3

1

 

I need to the result:

ID

m00

1

3

2

2

3

1

 

I appreciate very much the comments 

Thanks,

1 ACCEPTED SOLUTION
Nathaniel_C
Super User
Super User

Hi @karlo ,
Try this:

Z = CALCULATE(SUM(x[m00]),ALLEXCEPT(x,x[ID]))


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

cnt.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Nathaniel_C
Super User
Super User

Hi @karlo ,
Try this:

Z = CALCULATE(SUM(x[m00]),ALLEXCEPT(x,x[ID]))


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

cnt.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thank you Nathaniel_C

You are welcome!
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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