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
Chanleakna123
Post Prodigy
Post Prodigy

Row total is not right , tried few formula , Sumx , but sitll not right

hi all , 

the result turn out in rows are wrong , it supposed to be around 13,200$ though it show me 68K$. seems like it keep multiply between 360*189 , while this is not the right amount to be display as total. 

i tried using few formula as what i did , though turn out differently : 

Front Display = [Price Display]*SUM('Weekly Display'[Display in front of Shop/WH])

Test : SUMX(VALUES('Master Data Weekly'[Customer Name Group]),[Front Display]) - this formula still turn out wrong 

 

tempsnip.png

1 ACCEPTED SOLUTION

Please try this measure expression

 

NewMeasure =
SUMX (
    SUMMARIZE (
        'Target Weekly Stability',
        Segmentation[Seg.],
        'Master Data Weekly'[Weekly Group Code&Name]
    ),
    [Front Display]
)

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

9 REPLIES 9
camargos88
Community Champion
Community Champion

@Chanleakna123 ,

 

You are relating both tables through 445 calendar, however there are 2 values for tier on Display Price..they are related by date only... is it correct ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



hi @camargos88  , i have found the solution . thanks you so much for your effort. 

cheersssss :)))))

camargos88
Community Champion
Community Champion

@Chanleakna123 ,

 

Can you share the pbix ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Please try this measure expression

 

NewMeasure =
SUMX (
    SUMMARIZE (
        'Target Weekly Stability',
        Segmentation[Seg.],
        'Master Data Weekly'[Weekly Group Code&Name]
    ),
    [Front Display]
)

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


@mahoneypat  , wowwww , you're so brilliant . i was stuck with it for almost a week now. 

thanksyou for paving the way , i am so nascent on measure . thanks you so much , 

Cheers :))))))

Chanleakna123
Post Prodigy
Post Prodigy

@camargos88  , hi , can you help me on this ?? 

plz

Chanleakna123
Post Prodigy
Post Prodigy

hi @camargos88  , 

i have 3 main table above as Dimension tables

and 4 belows as the Fact tables , 

Field from Display Price Table : 2-Display front of Shop

Field from Weekly Display Table : 1 or 0 ( Based on Input )

 

Front Display : [Price Display]*SUM('Weekly Display'[Display in front of Shop/WH])

Test .. : as show in the picture. 

 

I put in the Metric Visualization which has Seg.  as the Dimension pic i have circle . and Customer Code&Name in Master Data Weekly  . the thing is Front Display result i want  turn out totally Wrong . it sum Altogether. and multiply each other instead  instead of Sum ROW of front display  13,200$ , NOT 68KCapture 6.PNGtempsnip 6.png

camargos88
Community Champion
Community Champion

@Chanleakna123 ,

It's replicating the measure Front Display for each row.

Try creating the calculation inside the sumx using row context.

Or give us some data example and the desired output, so we can help with this measure

 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



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.