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
Fidzi8
Helper IV
Helper IV

Wrong value in Matrix

Hi, 

Please, I need advice. My matrix works badly and I donť know how edit DAX

 

kč_km.png

My data tabel is here:

2020-05-20_11h12_29.png

 

Thank you 
Ondřej

1 ACCEPTED SOLUTION

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

View solution in original post

13 REPLIES 13
Fidzi8
Helper IV
Helper IV

@Fidzi8 

 

Just use MAX instead of SUM.

Measure =
MAX ( 'Profitabilita own fleet AGG'[KM] )
Measure 2 =
DIVIDE ( SUM ( 'Profitabilita own fleet AGG'[KC] ), [Measure] )

 

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

Hi @v-chuncz-msft@amitchandak 

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.

2020-05-26_14h11_34.png

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
amitchandak
Super User
Super User

@Fidzi8 , It should be like

divide(Sum[Table[KC]),Sum(Table[KM])), replace with the correct columns

Hi @amitchandak ,

It is the same 😕
2020-05-20_12h11_14.png
Thank you 
Ondřej

@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

@amitchandak ,

I don´t know how I have to use this formula, is this correct?

2020-05-20_13h07_28.png

Thank you

Ondřej

@Fidzi8 , yes, not sure what the name of the column so used that

@amitchandak 

but column maxx is same as column KM, what should I do next?
2020-05-20_13h33_25.png

I donť know how I have to write formula

Thank you, Ondřej

@Fidzi8 ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

@amitchandak,

I can share pbix but I don't know how share.

I don't see share button.

 

Thank you,Ondřej 

@Fidzi8 , you can upload to drop box or onedrive and share link

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.