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

Retrieving a particular column created by using the SUMMARIZE function

Good day,

 

I am using the below formula to create a table, the intention of which is to identify the MAX within the table - Whilst using the Count to check the highest number, what I am actually trying to accomplish is returning the category for which it is the highest.

 

Test = TOPN({1},SUMMARIZE('Mytable'
, 'MyTable'[Name]
, "Count", COUNT('FACT'[Id])
) )
 
What I am after is just returning the category in the table created by the Summarize function, however I cannot seem to reference it, and I have considered using a VAR, but I am not sure which function I could use to return the value from it. 
 
Please assist and Thanks in advance !
 
Regards,
1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

HI, @Anonymous 

Please add an order conditional in the TOPN formula:

Test = TOPN({1},SUMMARIZE('Mytable'
, 'MyTable'[Name]
, "Count", COUNT('FACT'[Id])
) , [Count] )

BeforeBeforeAfterAfter

Best Regards,

Lin

 

 

 

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

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

HI, @Anonymous 

Please add an order conditional in the TOPN formula:

Test = TOPN({1},SUMMARIZE('Mytable'
, 'MyTable'[Name]
, "Count", COUNT('FACT'[Id])
) , [Count] )

BeforeBeforeAfterAfter

Best Regards,

Lin

 

 

 

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

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.