Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Fidzi8
Helper V
Helper V

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 V
Helper V

@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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@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.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.