Forum Discussion
Wrong value in Matrix
Hi,
Please, I need advice. My matrix works badly and I donť know how edit DAX
My data tabel is here:
Thank you
Ondřej
Hi,
this is the solution.
1. Max km = MAX('Profitabilita own fleet AGG'[KM])2. sum max = SUMX(SUMMARIZE(VALUES('Profitabilita own fleet AGG'[KM]);'Profitabilita own fleet AGG'[KM];"ABCD";'Profitabilita own fleet AGG'[Max km]);[ABCD])Ondrej
13 Replies
- amitchandakSuper User
Fidzi8 , It should be like
divide(Sum[Table[KC]),Sum(Table[KM])), replace with the correct columns
- Fidzi8Helper V
Hi amitchandak ,
It is the same 😕
Thank you
Ondřej- amitchandakSuper User
Fidzi8 , I am not able see the level name in you table. but seem like you need sum till a level then take max of Avg for KM.
Try like
maxx(values(Table[level3]),sum(Table[KM]))
Where Level3 is name level having that 1481 value
- Fidzi8Helper V
amitchandak,
I hope that pbix will open.https://drive.google.com/file/d/1VhR7oDN4ksv_cxgcrXkgJtj06n1GpKOt/view?usp=sharing
Thank you,
Ondřej- v-chuncz-msftCommunity Support
Just use MAX instead of SUM.
Measure = MAX ( 'Profitabilita own fleet AGG'[KM] )Measure 2 = DIVIDE ( SUM ( 'Profitabilita own fleet AGG'[KC] ), [Measure] )- Fidzi8Helper V
I have still problem with calculation Kč/km.
When I calculate Max km and this value used to divide Kč/Max km than result is wrong.thank you
Ondřej