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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
o59393
Post Prodigy
Post Prodigy

Incorrect total with dax measure

Hi all

 

I need to get the sum product of a column multiplied by a percentage. 

 

My dax measure called Demand by bottler (Year +2) should calculate the demand by location multiplied by the growth %.

 

Below it should do the sum product of :

144,272,773 * 8.4% +

130,889,871 * 1.09% +

60,227,857* 7.08% +

18,453,746 * 15.98% 

 

o59393_2-1692246894048.png

 

 

The dax I use is:

 

Demand by bottler (Year +2) = 

SUMX ( 
   VALUES ( 'SKU by line - Official'),
   SUM(
       'SKU by line - Official'[Demand by bottler]) *
       CALCULATE(1+MAX('Demand incremental - Simulation'[Year +1 (Growth %)]))
) 

 

How ever the result is giving me over 1 trillion, but should be around 380 million.

 

How can I get right the dax?

 

Thanks.

1 REPLY 1
mlsx4
Super User
Super User

Hi @o59393 

 

I don't know how are your measures defined, but what I have done is this:

 

mlsx4_0-1692254310007.png

 

Demand by bottler (Year +2) = 

SUMX ( 
   VALUES ( MyTable[Demand by bottler]),
    MyTable[Demand by bottler]+ (MyTable[Demand by bottler]* SUM(MyTable[Max of Year +1 (Growth %)]))
) 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.