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

Help with SUMMARIZE fucntion

Hi Guys,

 

trying to write a completely simple summarize function.

 

Fucntion: SUMMARIZE CUST TYPE = SUMMARIZE(MASTER,MASTER[Customer_Type_Description],"COUNT",COUNTROWS(MASTER))

 

I keep receivng an error - THE EXPRESSION REFERS TO MULTIPLE COLUMNS. MULTIPLE COLUMNS CANNOT BE CONVERTED TO A SCCALAR VALUE.

I do not understand this as I am trying to use 1 column.

 

I am looking at our table called master where there are unique IDs for each line item (relating to a work item ID).

 

Each of the work items will have a Customer Type Description.

 

I am trying to get a count of each Customer Type Description in the summarize function so that I can calculate a median on that.

 

(Ultimate goal is to calculate the median of the count of work items per customer type).

 

Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Nevermind me.

 

Put my summarize inside of a medianx.

 

MEDIAN MONTHLY = CALCULATE(MEDIANX(SUMMARIZE(MASTER,MASTER[Work_Item_Last_Activity_Date].[Month],"COUNT",COUNTROWS(MASTER)),[COUNT]))

 

Looks like it's working.

 

Busy vetting results.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Nevermind me.

 

Put my summarize inside of a medianx.

 

MEDIAN MONTHLY = CALCULATE(MEDIANX(SUMMARIZE(MASTER,MASTER[Work_Item_Last_Activity_Date].[Month],"COUNT",COUNTROWS(MASTER)),[COUNT]))

 

Looks like it's working.

 

Busy vetting results.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.