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

How to use SUMMARIZECOLUMNS in measure for same table?

Hi Team

 

CalcTable = SUMMARIZECOLUMNS(KPISummary[Kpis],KPISummary[Quarter],KPISummary[SiteName],
"Result",AVERAGE('KPISummary'[Pass/Fail 1,0]))
 
Using above I have created a calculated table to get the below measure
 
CountofFail = COUNTROWS(FILTER(CalcTable,AND(CalcTable[Pass/Fail]="Fail",CalcTable[Quarter]<>"Q4"))).
 
Is there any way to use the above SUMMARIZECOLUMNS function in the same KPISummary Table to that I can get the above measure?
 
I am trying below but failing - 
 
RatanBhushan_0-1632288002583.png

 

 

Please advise me a better way.

 

Thanks and regards

RatanB

2 REPLIES 2
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Anonymous ,

 

You can't create summarized table in a variable. You need to create the table first and then, try creating DAXs using the columns in that table.

 

 

Mark this if I answered your question. Kudos are always appreciated.

Thanks.

Anonymous
Not applicable

Could you please share some idea of dax within the same dax which I have shared here?

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.