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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
BobSled
Frequent Visitor

Getting 0 for grand total on a created Measure

Hello Everyone,

I feel like this is an easy fix but im abselutely stumped.....

I have seen a couple of forums for items similar to this but they were slightly different/specific and  i wasnt sure how to work those methods into my situation.

 

I have created a couple of measures.

 

1. is to caclualte Points times Qty of items.

Spec Point QTY = MIN('SageProductMaster'[Points]) * SUM('spec_credits'[qty_0])
 
2. is to use the previous measure(Spec Point QTY) to calculate total points times Dollars
Spec Points = [Spec Point QTY]*SUM(spec_credits[untaxed])

 

While these formula gave me proper results in the view i dont get a grand total for the view it just says 0

This is where i cant seem to figure out how to get Grand Totals. Please Help =]

BobSled_1-1684446555211.png

 

 

 

1 ACCEPTED SOLUTION
BobSled
Frequent Visitor

Good Morning Everyone,

Thank you for your feedback and assistance on this one.

Just wanted to give a shout out to @tamerj1 .

I found an old post he was on and the solution below worked perfectly for what i was needing.

I was able to multiple 2 columns from different tables and get grand totals for my new field categories.

Thought i would share it in case it can help anyone else in the future. Thanks again!

NewMeasure =
SUMX (
    Table1,
    VAR Name = Table1[Name]
    VAR Value1 = Table1[Value]
    VAR Value2 =
        MAXX ( FILTER ( Table2, Table2[Name] = Name ), Table2[Value] )
    RETURN
        Value1 * Value2
)

 

View solution in original post

3 REPLIES 3
BobSled
Frequent Visitor

Good Morning Everyone,

Thank you for your feedback and assistance on this one.

Just wanted to give a shout out to @tamerj1 .

I found an old post he was on and the solution below worked perfectly for what i was needing.

I was able to multiple 2 columns from different tables and get grand totals for my new field categories.

Thought i would share it in case it can help anyone else in the future. Thanks again!

NewMeasure =
SUMX (
    Table1,
    VAR Name = Table1[Name]
    VAR Value1 = Table1[Value]
    VAR Value2 =
        MAXX ( FILTER ( Table2, Table2[Name] = Name ), Table2[Value] )
    RETURN
        Value1 * Value2
)

 

Greg_Deckler
Super User
Super User

@BobSled First, please vote for this idea: https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e

This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907

Also: https://youtu.be/uXRriTN0cfY
And: https://youtu.be/n4TYhF2ARe8



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
ppm1
Solution Sage
Solution Sage

Please see this video. You'll need to use SUMX with VALUES or SUMMARIZE in your measure.

(2) Power BI - Tales from the front #01 - Getting the Right Total - YouTube

 

Pat

Microsoft Employee

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.