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
Anonymous
Not applicable

Need help to make correct measure via DAX - Power BI

HI,

 

I need some help to get a fact correct.

 

Model:

 

JEOS_0-1634723080328.png

All relations 1 - M

 

JEOS_1-1634723158446.png

All Facts are kept in tabel "WMSORDERTRANS" (Lowest granuality) + Center of the Universe where all relations point into.

 

The Visualization wich gives a challenge:

 

JEOS_2-1634723404037.png

 

Dimension:

JEOS_3-1634723526617.png

 

Facts:

JEOS_4-1634723547344.png

 

Formulas to facts:

 

JEOS_5-1634723584844.png

JEOS_6-1634723607266.png

JEOS_7-1634723635513.png

 

JEOS_8-1634723657828.png

JEOS_9-1634723681597.png

 

The question is how do I get "MAKS CBM" to calculate correctly:

 

Max CBM => to calculate correctly, The idea was => related (‘ltm tblCarriers’, ‘ltm tblCarriers [Optimal CBM] * [How many trucks] - (The Related function does not work!)  

 

But the whised result should be as below =>

 

CarrierCarNumber       Hvor mange lastbiler      Prøve CBM       Beregning (Maks CBM)            =    Resultat (How many CBMs could optimally have been used )

 

2501                              17                                   127,30                17*127,30                                     =                            2.418,7 CBM

 

2502                              8                                    127,30                17*127,30                                      =                            1018, 4 CBM  

 

………..

 

Total                                                                                                                                                                                    3.437,1 CBM   

 

And not like now 516 * 2,192.39 = 1.131.272,15 CBM

 

CarrierCarnumber = Expresses the individual car type

 

Hvor mange lastbiler (How many trucks) = Expresses how many trips the truck has drive

 

Prøve CBM (Test CBM) = Expresses how many CBMs there can be on one car

 

I hope the above description is good enough or else please come back to me.

 

Looking forward to a postive answer 🙂

 

Jesper

1 REPLY 1
v-robertq-msft
Community Support
Community Support

Hi, 

According to your description, I can’t roughly understand what’s your true requirement, I suggest you to shorten your explanation about your needs and give us some test data as short as possible to give you the targeted assistance.

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.