Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi everybody, i have some question about this.
I have a table that contain multiple columns (Market, Despatch, etapa1). i have 1 MARKET, and a lot of despatch.
I need to find de max value of "ETAPA 1" Referred to each "DESPATCH" for example, in this case
And then calculate the addition with the max values
Solved! Go to Solution.
Hi @Anonymous
Thanks for reaching out to us.
>> And then calculate the addition with the max values
You can try this, create the 2 measures
Max_PerMarDes =
var _maxEta=CALCULATE(MAX('Table'[Etapa1]),ALLEXCEPT('Table','Table'[Market],'Table'[Despatch]))
return IF(MIN('Table'[Etapa1])=_maxEta,_maxEta)
sum = SUMX('Table',[Max_PerMarDes])
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Thanks for reaching out to us.
>> And then calculate the addition with the max values
You can try this, create the 2 measures
Max_PerMarDes =
var _maxEta=CALCULATE(MAX('Table'[Etapa1]),ALLEXCEPT('Table','Table'[Market],'Table'[Despatch]))
return IF(MIN('Table'[Etapa1])=_maxEta,_maxEta)
sum = SUMX('Table',[Max_PerMarDes])
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Please check the below picture and the attached pbix file.
It is for creating new columns.
MAX Etapa1 CC =
VAR _maxetapa1 =
MAXX (
FILTER (
Data,
Data[Market] = EARLIER ( Data[Market] )
&& Data[Despatch] = EARLIER ( Data[Despatch] )
),
Data[Etapa1]
)
VAR _condition = Data[Etapa1] = _maxetapa1
RETURN
DIVIDE ( _condition, _condition ) * _maxetapa1
MAX Etapa1 CC =
VAR _maxetapa1 =
MAXX (
FILTER (
Data,
Data[Market] = EARLIER ( Data[Market] )
&& Data[Despatch] = EARLIER ( Data[Despatch] )
),
Data[Etapa1]
)
VAR _condition = Data[Etapa1] = _maxetapa1
RETURN
DIVIDE ( _condition, _condition ) * _maxetapa1
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |