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
Giada_Togliatti
Post Patron
Post Patron

Aggr and rank function from qlik to power bi

Hi,

I need to traslate this formula from qlik to power bi

aggr(rank(sum([field1),1,1), [field2], [field3])

 

Aggr function in qlik has this meaning: aggr() returns an array of values for the expression calculated over the stated dimension or dimensions. For example, the maximum value of sales, per customer, per region. 

Could anyone help me?

Thank you

7 REPLIES 7
Eugene_poddany
New Member

Hi everyone.

Try this function:

Column 2 = calculate(SUMX('TableName',TableName[Column1] + TableName[Column2]))

 

or join with next function

 

My_column = SUMX( FILTER( 'TableName',TableName[Column1] <> "NULL"), TableName[Column1] + TableName[Column2] )
 
 
_MR_DTT_
New Member

Hello Giada,

I have the same problem as you, and I still can't find a solution.

Have you managed to find one?

Greetings

Hello,

unfortunately no.

Greetings

jimmygdsis
New Member

Email me at jimmy@gdsis.cl we specialize in both technologies, we can help you.

Icey
Community Support
Community Support

Hi @Giada_Togliatti ,

 

I don't understand your qilk language. Can you give me a specific example to help me understand?

Please show me some sample data and the result you want.

 

 

Best Regards,

Icey

amitchandak
Super User
Super User

@Giada_Togliatti ,

For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/3...

 

example

City Rank = RANKX(all(Geography[City]),[Sales]) // if you  add city id ither then city then rank will be one
Geography Rank = RANKX(all(Geography),[Sales]) // both for city id and city it will work
City and ID Rank = RANKX(all(Geography[City],Geography[City Id]),[Sales]) // work for city and city id as both are the lowset level

Mariusz
Community Champion
Community Champion

Hi @Giada_Togliatti 

 

Can you provide some data samples and explain what you need? Happy to help but no idea about qlik.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

 

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.