March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi guys,
I need to create a calculated column in the table below:
I have the "Cupons" and "Quantidade" columns. The "Items por Cupom" column is the division from the first to the second.
I need now to create a column in which I have the maximum value of the "Items por Cupom" column of each cluster (first column). In the image, it would be 0.65 for cluster 2, 0.61 for cluster 3, and so on. The values must be repeated row by row for each cluster.
Can someone help me?
Solved! Go to Solution.
Hi @renanpinheiro,
Based on my test, the formula below should work in this scenario.
Max of Items por Cupom = CALCULATE ( MAXX ( SUMMARIZE ( 'BD_LACUNA', 'BD_LACUNA'[Cluster], 'BD_LACUNA'[NOME_LOJA], "Cluster_NOME_LOJA_Items", [Items por Cupom] ), [Cluster_NOME_LOJA_Items] ), ALLEXCEPT ( 'BD_LACUNA', 'BD_LACUNA'[Cluster] ) )
Regards
Hi @renanpinheiro,
Could you try the formula below to see if it works in your scenario?
Max of Items por Cupom = CALCULATE ( MAX ( 'BD_LACUNA[Items por Cupom]' ), ALLEXCEPT ( 'BD_LACUNA', 'BD_LACUNA'[Cluster] ) )
Regards
Hi @v-ljerr-msft,
The "Items por Cupom" column is a measure and the MAX function does not allow you to use measures, how can I get around this?
Hi @renanpinheiro,
Based on my test, the formula below should work in this scenario.
Max of Items por Cupom = CALCULATE ( MAXX ( SUMMARIZE ( 'BD_LACUNA', 'BD_LACUNA'[Cluster], 'BD_LACUNA'[NOME_LOJA], "Cluster_NOME_LOJA_Items", [Items por Cupom] ), [Cluster_NOME_LOJA_Items] ), ALLEXCEPT ( 'BD_LACUNA', 'BD_LACUNA'[Cluster] ) )
Regards
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |